Hi, 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"}'
The request URL must be something like this, https://api.kite.trade/instruments/historical/5633/minute?from=2015-12-28&to=2016-01-01&api_key=yyy&access_token=xxx You seem to be sending it inside quote.
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.
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.
https://api.kite.trade/instruments/historical/5633/minute?from=2015-12-28&to=2016-01-01&api_key=yyy&access_token=xxx
You seem to be sending it inside quote.
This can be closed.