Your access token may have expired. Please generate a new access token and check. You can refer to this similar discussion here and login FAQs for more details.
To generate the access token, you need to copy the request token from the redirect URL and use it to generate the session. Please note that the access token is valid for one day, and you can use it for all API requests throughout that day. A request token, however, is valid for only a few minutes and can be used just once. Ensure that you do not request a new access token for every run. Once you have generated the access token, store it in a file or app preferences for reuse.
We recommend following the login flow as outlined in the Kite Connect API documentation. Additionally, you can refer to this webinar for a detailed walkthrough.
You can also explore our Quantinsti course on Algorithmic trading with Zerodha Kite Connect API and Python.
Please note that Kite Connect is an execution-only platform, and we are unable to assist with custom code development. We recommend referring to the official Python library" and sample implementations available in the API documentation for guidance.
We recommend following the login flow as outlined in the Kite Connect API documentation. Additionally, you can refer to this webinar for a detailed walkthrough.
You can also explore our Quantinsti course on Algorithmic trading with Zerodha Kite Connect API and Python.