Historical API Activation Delay

How much time it takes for the historical APIs to get activated after we enable the subscription on https://developers.kite.trade/apps (clicking on addon-historical API-enable).

I just enabled the subscription for historical APIs but unable to fetch any data. Error details below:

b'{"status": "error", "error_type": "TokenException", "message": "Invalid API credentials"}'
  • sujith
    You need to re-login after subscribing to access historical data.
  • naz
    Hi @sujith ,

    it is not working. I logged out from kite connect apis, kite web etc. And then I am using below standard command (given in example)

    response = requests.get("https://api.kite.trade/instruments/historical/5633/minute?from=2015-12-28&to=2016-01-01&api_key='yyy'&access_token='xxx"

    response is coming to be <403> .

    Is there a different api_key or access_token we need to use ? currently i am using kite.api_key and kite.access_token for these fields.
  • sujith
    The request URL must be something like this,
    You seem to be sending it inside quote.
  • naz
    Thanks Sujith, for the prompt reply. I was wrongly putting api_key and access_token inside a single quote which was not required (as you suggested). Now it is working.
    This can be closed.
This discussion has been closed.