Historical Data API failing with Auth

nitinka
I have subscribed to APIs including historical APIs.
All APIs except historical APIs are working.
I am getting following error :

Example API - curl "https://api.kite.trade/instruments/historical/12517890/minute?from=2019-12-04 09:15:00&to=2019-12-04 09:20:00&oi=1" -H 'X-Kite-Version: 3' -H 'Authorization: token -----:-----'

{"status":"error","message":"Incorrect `api_key` or `access_token`.","data":null,"error_type":"TokenException"}

Note - I subscribed historical APIs yesterday and base apis were subscribed couple of days ago.
As per Zerodha support historical API access is enabled.
  • rakeshr
    {"status":"error","message":"Incorrect `api_key` or `access_token`.","data":null,"error_type":"TokenException"}
    Was this access_token generated before enabling the subscription?
    You can invalidate the current access token and regenerate a new access token.
Sign In or Register to comment.