Hi Team I am using a python code which saves the access token in a text file, this is later read to start the session . But every time I do this, I am getting the below error.
kiteconnect.exceptions.TokenException: Token is invalid or has expired.
I am only able to use this access token one time. Not sure, what I am doing wrong, can someone help?
@whity this token saved in the text file is for the same day or reused everyday? An access token is only valid for the current trading day and you'll have to generate a new one everyday.
@Matti@sujith how to reuse an access token throughout the day..? say I got the token and saved in a file. how to use that again to start trading again, intraday?
You may check out this thread for a similar discussion. Also, refer to API documentation for the complete login flow.