☰
Login
Signup
Home
›
API clients
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
155
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
994
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
July 19
sujith
Unable to fetch historical data for few of the trading symbols
saurabhmehta86
July 18
in
API clients
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:
InputException
sujith
July 19
It is the instrument token that is Invalid and not the access token.
Sign In
or
Register
to comment.