File "one.py", line 41, in print(kite.historical("3291649", "2017-01-2017","2017-01-31", "5 minute", "continuous=False")) File "work/pykiteconnect-master/kiteconnect/__init__.py", line 522, in historical "continuous": 1 if continuous else 0}) File "/work/pykiteconnect-master/kiteconnect/__init__.py", line 577, in _get return self._request(route, "GET", params) File "/work/pykiteconnect-master/kiteconnect/__init__.py", line 668, in _request raise(exp(data["message"], code=r.status_code)) kiteconnect.exceptions.TokenException: Invalid API credentials
You need to subscribe for an add-on subscription for using historical data.