☰
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
14.1K
All Categories
0
Incidents
157
Node JS client
41
Go client
795
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
407
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
July 2024
sujith
Unable to fetch historical data for few of the trading symbols
saurabhmehta86
July 2024
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 2024
It is the instrument token that is Invalid and not the access token.
Sign In
or
Register
to comment.