Unable to fetch historical data for few of the trading symbols

saurabhmehta86
Hi Team,

I have fetched the list of instrument tokens via instrument API. I can fetch the data for a few of the trading symbols for other symbols I am getting

The given headers have been masked.

1. Below API hit gives 400.

curl --location 'https://api.kite.trade/instruments/historical/407809/day?continuous=0&from=2024-07-01 00:00:00&oi=0&to=2024-07-18 00:00:00' \
--header 'Authorization: token xxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyyyy' \
--header 'X-Kite-Version: 3' \
--header 'Cookie: _cfuvid=ZZZZZZZZZZZZZZZZZZZZZZZZZZZ-11111111111-0.0.1.1-2222222222'

{
"status": "error",
"message": "invalid token",
"data": null,
"error_type": "InputException"
}

2. Below API hit gives 200.
curl --location 'https://api.kite.trade/instruments/historical/619777/day?continuous=0&from=2024-07-01 00:00:00&oi=0&to=2024-07-18 00:00:00' \
--header 'Authorization: token xxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyyyy' \
--header 'X-Kite-Version: 3' \
--header 'Cookie: _cfuvid=ZZZZZZZZZZZZZZZZZZZZZZZZZZZ-11111111111-0.0.1.1-2222222222'


Not sure, why point#1, is giving an invalid token error. As with the same token, I can hit the API given in point#2.
Tagged:
  • sujith
    It is the instrument token that is Invalid and not the access token.
Sign In or Register to comment.