GTT - Rule List api is throwing error
-
Endpoint : Error occurred while making a POST request to https://apiconnect.angelbroking.com/rest/secure/angelbroking/gtt/v1/ruleList.
Error : Request: {'status': ['NEW', 'ACTIVE'], 'page': 1, 'count': 50}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
-
Hello @akumar42
One on one support is cuurently we are not providing
If possible can you please share the clientId So that we can check the logs from our sideRegards,
SmartAPI Team -
Hi,
I confirm that I am passing the header correctly in the request. This is not the only API I am using couple other API's [get positions, candledata etc] as well and they are working fine. Also, it worked all fine till now yesterday as well it worked fine once so that means the issue is not with headers. Possible to have a google meet or some kind of connect? talking like this back and forth is not helping at all. Hope you understand.
-
Hello @akumar42
Please hide your secret information with some special character(*,- etc).So that we can confirm that you are passing the expected headres or not from our side.
Regards,
SmartAPI Team -
Hi,
I can't share the full header since it contains my secret key but I am sending it. This API was working fine till last week from past 3 months.
I have not made any changes to my script.Request : smartApi.gttLists(status=['NEW'], page=1, count=100)
Possible to have a google meet ?
-
Hello @akumar42
You are not passing the Authorization in header ,Kindlt cross check with the below attached link and confirm
https://smartapi.angelbroking.com/docs/GttRegards,
SmartAPI Team -
Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '', 'X-ClientPublicIP':'' , 'X-MACAddress': '', 'Accept': 'application/json', 'X-PrivateKey': '', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'status': ['NEW'], 'page': 1, 'count': 50}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
-