invalid token

rajeshbabu_galla
There are a couple of problems with historical data
1. message is incorrect
2. why data is not available

curl --location 'https://api.kite.trade/instruments/historical/505737/minute?continuous=0&from=2022-09-28 14:59:15&oi=0&to=2022-09-28 15:09:15' \
--header 'X-Kite-Version: 3' \
--header 'Authorization: token xyz' \
--header 'Cookie: _cfuvid=onYllvsXWjFFhnjxn9RKADuhJsi5DQhxn6BdqDWT63A-1723346036605-0.0.1.1-604800000'
This doesn't work, but when I replace it with 1723649, it works. So this is not a code issue, but seems like data issue.
  • rakeshr
    instrument_token : 505737
    1. message is incorrect
    It will throw an invalid token error message, which is correct, as there are no active instrument with instrument_token: 505737.
    2. why data is not available
    Because you are using an invalid instrument_token. You need to use the correct active instrument_token. Go through the historical data API documentation here.
    but when I replace it with 1723649, it works
    Yes, because 1723649 is the correct instrument token for NSE:JINDALSTEL. Go through the historical data FAQs here.
Sign In or Register to comment.