It looks like you're new here. If you want to get involved, click one of these buttons!
from kiteconnect import KiteConnect
# initialise all variables we need
api_key = "xxxxxxxxxxxxxxxxxxxxxxxx"
client_id = "DR0283"
obtained_request_token = "xxxxxxxxxxxxxxxxxxxxxxx"
api_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
kite = KiteConnect(api_key=api_key)
try:
user = kite.request_access_token(request_token="obtained_request_token",secret=api_secret)
print("Access Token --> ", user["access_token"])
except Exception as e:
print("Authentication failed", str(e))
raise
The request token can be used only once and it is valid for a couple of minutes. A user can't re-use request token.
I said that, I generated request token and used it within a minute (didn't wait long) to generate access token. Still I get error as said in my previous message.
As I was getting error, I tried this process 3 times. I tried again now..still same issue.
Please help. I paid for subscription, but unable to trade...
You can check out webinar for login flow.