Getting this error while fetching historical data. Not sure what to do.
File "Main Code.py", line 33, in on_ticks df = kite.historical_data("RELIANCE", from_, to_, '30minute', False) File "C:\Users\abhis\AppData\Local\Programs\Python\Python37\lib\site-packages\kiteconnect\connect.py", line 630, in historical_data "oi": 1 if oi else 0 File "C:\Users\abhis\AppData\Local\Programs\Python\Python37\lib\site-packages\kiteconnect\connect.py", line 817, in _get return self._request(route, "GET", params) File "C:\Users\abhis\AppData\Local\Programs\Python\Python37\lib\site-packages\kiteconnect\connect.py", line 886, in _request raise exp(data["message"], code=r.status_code) kiteconnect.exceptions.PermissionException: Insufficient permission for that call.
You need to subscribe to historical data in order to use the same. It is an add-on subscription.
It just reads:
Addons
Historical API
2000 / month
@sujith - Do check out the image attached.
Google Chrome
Version 80.0.3987.163 (Official Build) (64-bit)