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 key and Token issue while accessing Historical data
I am able to get the list of instruments with api_key and access_token successfully. But within the same program, while I try to access the historical data, I am getting below error message.
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
I have activated the Historical access today only.
I have the same issue when I try to access the streaming data.
Incorrect `api_key` or `access_token`
Can someone please help me with this? Has anyone placed similar issue where is working for instruments and not working for others in the same piece of code?
The first file is the code and second is the output. It is printing the instrument count with the same access keys, but is giving error for getting a quote, historical data or streaming.
If anyone can throw some light on this that would be of great help.
If there a technical support team from Kite? If so, how do we reach out to them? Thank you.
Screenshot 2023-01-16 at 9.03.36 PM.png
Screenshot 2023-01-16 at 9.03.09 PM.png
The instruments file doesn't authenticate, hence you are getting the response. For other API calls, you need to create a new access token.
Thank you. I was using request_token as access_token and missing one step. This is working now.
This discussion has been closed.