I keep getting "TokenException: Token is invalid or has expired." error even after cross-checking the api_key and api_secretkey multiple times. Please help.
Yes, I am trying to automate the login process. Tried manual login into the Kite portal and the Kite Connect portal as well but the result is still the same. The same error keeps popping up.
If you are sure that all your credentials/tokens are correct and you are still getting token exception,then request Sujith Sir or Rakesh Sir,only they can help you .
How exactly can they help? Do I need to provide my api keys to them and they can help identify the error from the backend? Can you please provide their contact?
You need to recheck if you are passing the correct request token string. Recheck on reading values from the file part, if any extra values like `\n`, etc, get added while reading.
I had not authorized on the kite.trade website. That was the issue and hence my code was not able to move past that stage. Rectified error in the code and woosh, it started working.
Make sure to use request token immediately after loggin in to your KiteConnect app .
Are you automating the login process??
If so,then it's against the exchange regulations. Every user has to manually login atleast once a day.
Try manual login and check.
Tried manual login into the Kite portal and the Kite Connect portal as well but the result is still the same. The same error keeps popping up.