Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate
-
I am encountering an error while placing orders on your platform. Even though my orders appear to be placed successfully, I am not receiving a successful response.
Could you please clarify if the order limit is on a per-day basis or per-second basis? I want to note that I am not placing more than one order at a time. Your assistance in resolving this issue would be greatly appreciated.
Thank you for your prompt attention to this matter.
-
I've recently reached out to the Angle Support team and, while I received a prompt response, I must admit that I was not entirely satisfied with the answer provided. I've since posed a few more questions to them and am currently awaiting their reply.
-
I've recently reached out to the Angle Support team on mail and, while I received a prompt response, I must admit that I was not entirely satisfied with the answer provided. I've since posed a few more questions to them and am currently awaiting their reply.
-
@Vignesha Adding a small delay usually reduces the number of errors usually.
@admin The reason there are so many errors is that often many traders are using get_position constantly. This is because the web socket 2.0 is often failing. Sometimes, if the get_holdings returns stale LTP, often I have to write a custom function that will get_holdings and loop for all stocks to get LTP. So if I have 5 stocks in my holdings, instead of one call to the API, I have to make 6 calls. The Angel API is being overworked. Please try to fix these....
-
@Cyriac Any progress on this from your side?
For me I experienced the same even though I call it once a sec but after adding 0.5 sec delay its working fine.@admin any reason why we are getting rate limit error without exceeding the rate? adding sleep in python fixes it but thats not how this is supposed to be working righ
-
@Cyriac said in Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate:
I face this issue frequently while using get_position endpoint. Although it is well within the limits specified in the documentation....
https://smartapi.angelbroking.com/docs/RateLimit
@psm007 The limits are per second in theory, but not too sure about practice unfortunately....
Thank you for your response. My requests per second are well within the prescribed limit. In fact, my application operates on a single thread and utilizes sequential execution.
-
@Cyriac Thank you for your response. My requests per second are well within the prescribed limit. In fact, my application operates on a single thread and utilizes sequential execution.
-
I face this issue frequently while using get_position endpoint. Although it is well within the limits specified in the documentation....
https://smartapi.angelbroking.com/docs/RateLimit
@psm007 The limits are per second in theory, but not too sure about practice unfortunately....
-
@psm007 said in Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate:
I am encountering an error while placing orders on your platform. Even though my orders appear to be placed successfully, I am not receiving a successful response.
Could you please clarify if the order limit is on a per-day basis or per-second basis? I want to note that I am not placing more than one order at a time. Your assistance in resolving this issue would be greatly appreciated.
Thank you for your prompt attention to this matter.
Got same error today
Error Message:
Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'Context:
I use the API to place trades based on specific criteria. However, when my algorithm books more than 10 trades in a day, I've observed this error. While I understand the necessity of rate limits for maintaining system integrity, I'd like to clarify a few points:Limit Details: Could you please provide more specifics about the rate limits? For instance, the number of trades or requests permitted within a specific duration?
Error Handling: Is there a recommended approach to handle such rate-limiting errors programmatically, ensuring the integrity of the trades and minimizing disruptions?
Possible Solutions: If my current trading frequency is indeed exceeding the set limits, are there any available options to increase this limit, whether it's a different subscription tier or any other solution?
The trade details of a sample problematic order are as follows:
{'variety': 'NORMAL', 'tradingsymbol': 'NIFTY07SEP2319600CE', 'symboltoken': '45027', 'transactiontype': 'BUY', 'exchange': 'NFO', 'ordertype': 'MARKET', 'producttype': 'CARRYFORWARD', 'duration': 'DAY', 'price': 0, 'quantity': '50', 'ordertag': 'EMASUPERTRNED_V2'}
Your guidance in this matter would be invaluable, as I'd like to ensure seamless trading while staying within the API's constraints.