Access rate
-
Hi @admin and Team,
What is the recommended access rate per minute for api calls ? like rmslimit, positions, ltp etc
Im getting this error while testing.. most probably I exceeded the limit..
b'Access denied because of exceeding access rate'Hence interested in knowing it. Also please enable the search function. Apologies if I repeated the question that is already asked.
-
@admin What is the recommended rate of Historical Data Fetch please mention.. Also some issue on it pls see the link here - https://smartapi.angelbroking.com/topic/2411/python-api-historical-data-fetch-became-arbitrary-dataframe-not-coming-after-totp-has-been-imposed
-
HI @S_DEV you can go through below doc:
https://smartapi.angelbroking.com/docs/RateLimit -
@admin Thanks for the information
-
HI @webseos Please go through below doc.
-
@admin I think rate is 10 as shown in table
-
Hi @S_DEV You can hit 3 request in a second to ace's historical data.
-
Hi, what is the throttling limit rate for getCandleData?
How do we limit request per second is there any method in SmartAPI SDK for python?Can anyone please help me with this?
Thanks,
-
@admin Thank you..
-
@rajanprabu said in Access rate:
data = obj.generateSession(client_code, password)
tokens = obj.generateToken(data["data"]["refreshToken"])HI @rajanprabu , both these calls need not be done together. If so it will show access rate error.
Generate token needs to be called after 150 minutes, once the token is expired.
-
This is what I do.. I generate session and then immediately generate token and dump in on to json file. This is I normally do at morning 9:10 or so.. Then I reuse the tokens at 9:15 for my session.
Maybe generating session and generating tokens immediately after hitting the rate limit ?
Having said that this did not occur last days.
from smartapi import SmartConnect import json with open(Angel_Broking/ab_user.json') as f: data = json.load(f) api_key = data['api_key'] client_code = data['client_code'] password = data['kennwort'] obj = SmartConnect(api_key=api_key) data = obj.generateSession(client_code, password) tokens = obj.generateToken(data["data"]["refreshToken"]) with open('Angel_Broking/ab_tokens.json', 'w') as outfile: json.dump(tokens['data'], outfile)
-
@dheepi Thank you for sharing the logs with us.
- Can you please confirm the time at which you are trying to generate the session?
- Are you trying to generate the session for multiple accounts at same time?
If possible, please share the logs with us on api@angelbroking.com
-
@dheepi said in Access rate:
Its not like I am doing multiple calls, but only one call at 9.00AM IST.
Yes I have also faced this isse on somedays..
-
@dheepi @admin I also get this access rate issue when I try to login. After multiple attempts I am able to login.
-
@admin , I have faced same error while calling generateSession. Its not like I am doing multiple calls, but only one call at 9.00AM IST.
May be overall system is hitting the rate limits by Infra side ?
-
Hey @macstar440
I just reduced my access limit to what described in the table. I have no issues now..
-
@rajanprabu hey did you get solution of your query bcz i need help
-
Hi @rajanprabu ,
Please refer below table