Unable to get historical data.

adhuf
adhuf edited February 2017 in Java client
I am trying to get 30mintue data of infosys for interval 8th to 9th Feb 2017. But I am getting error as session expired. tried same from DH Client (browser REST client) and got token exception.

GET Request:
https://api.kite.trade/instruments/historical/408065/30minute?from=2017-02-08&to=2017-02-09&api_key=YYY&access_token=XXX

Response:
Code : 403 Forbidden

BODY:
{
"status": "error",
"error_type": "TokenException",
"message": "Invalid API credentials"
}

Whereas using same access token other APIs (like api.kite.trade/portfolio/holdings) are working.

I think we should be able to access data up to a year old without subscribing for historical API. is is correct?
  • sujith
    Hi @adhuf,
    Historical API access requires an add on subscription. Please go to developers console and go to app details page and subscribe for it.
  • adhuf
    After subscribing it is working. Thanks :)
This discussion has been closed.