I am trying to pull historical data. I am using official python client library.
I have tried creating access token multiple times. Still getting below error
>>>>>>>>>>>>>>>>> File "test.py", line 69, in main data = kite.historical(2747905, start, end, 15) File "build/bdist.linux-x86_64/egg/kiteconnect/__init__.py", line 415, in historical File "build/bdist.linux-x86_64/egg/kiteconnect/__init__.py", line 455, in _get File "build/bdist.linux-x86_64/egg/kiteconnect/__init__.py", line 542, in _request kiteconnect.exceptions.TokenException: Invalid API credentials
>>>>>>>>>>>>>>
if i do data = kite.instruments("NSE"); it works fine, so i believe my credentials/token are ok.
Hi @gsuryagandh, Historical API is an add on subscription. It doesn't include in base subscription. Your App doesn't have historical API access. You can get historical API subscription on developer console.
Historical API is an add on subscription. It doesn't include in base subscription. Your App doesn't have historical API access. You can get historical API subscription on developer console.