Access rate
-
@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 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
-
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)
-
@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.
-
@admin Thank you..
-
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,
-
Hi @S_DEV You can hit 3 request in a second to ace's historical data.
-
@admin I think rate is 10 as shown in table
-
HI @webseos Please go through below doc.
-
@admin Thanks for the information
-
HI @S_DEV you can go through below doc:
https://smartapi.angelbroking.com/docs/RateLimit -
@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