It looks like you're new here. If you want to get involved, click one of these buttons!
Node JS client
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Access Token Generating same everytime
Whenever I am login using kite connect API, then it is returning same access_token in every time.
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.
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'.
Can you private message the api_key and also share the complete debug logs?
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.