After putting the access token correctly I am getting the error

sameermajmudar
After putting the access token correctly I am getting the error

RuntimeError: Access token invalid or expired: Incorrect `api_key` or `access_token`
  • salim_chisty
    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.
  • sameermajmudar
    Now I entered the access token correctly and have generated checksum also. But now I don't know what to do??
  • salim_chisty
    salim_chisty edited February 12
    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.
  • sameermajmudar
    you had in the morning told me that you shall be sharing a code with me. Can you please send me to my email id.
  • salim_chisty
    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.
Sign In or Register to comment.