Access rate
-
@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