Access Token Generating same everytime

jaypanchal
Whenever I am login using kite connect API, then it is returning same access_token in every time.
Tagged:
  • sujith
    You only have to login once and use the same access token for the whole day for all the calls. You don't need to create new one for every request.
  • jaypanchal
    jaypanchal edited February 7
    Yes, that is right. I am doing the same. I am login one time per day.

    Before, it was working fine. It was generating correct access token. but currently, It is not generating new access token in API. It is returning old one instead.

    And therefore, API is returning this error:
    Fatal error: Uncaught KiteConnect\Exception\InputException (400) 'invalid token'.

  • sujith
    Can you private message the api_key and also share the complete debug logs?
  • jaypanchal
    I enabled my debug log, and from that, I found that I was sending wrong instrument token in historical data API.

    Thanks for your help.
This discussion has been closed.