Historical Data not working

Solixious
I get an error response when calling the historical data endpoint using kiteconnect java sdk.

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

My API key (y8bi175tayewxerk) is active and seemingly works for other endpoints. The app is of connect type as well.
Can someone please help me get this resolved?
Thank you.
  • salim_chisty
    We request you to verify and check the following:​
    • You must generate a new access token each day via the login flow using the request token.
    • You must pass the correct instrument token as a string, not the trading symbol, such as "NIFTY23JULFUT".
    • Double-check you're not accidentally passing the API key instead of the access token to the historical data call.
  • sailendrakbhowmick
    I am also facing similar issue .Hello @salim_chisty can share a succesful request for gethistoricalData. like this Request{method=GET, url=https://api.kite.trade/instruments/historical/54872327/15minute?continuous=0&from=2019-09-20 09:15:00&oi=1&to=2019-09-20 15:30:00, headers=[User-Agent:javakiteconnect/3.1.14, X-Kite-Version:3, Authorization:token xxxxx:xxxxxxx]}
  • nagavenij
    The instrument token appears to be incorrect. You can retrieve the correct instrument details by using the getInstruments() function, which provides a CSV dump of all available instruments.
    For more information, you can refer to the Kite Connect documentation.
Sign In or Register to comment.