iam trying to download historical data and getting this error can anyone help me with please. runfile('D:/python/hisdata1.py', wdir='D:/python') Traceback (most recent call last):
File "", line 1, in runfile('D:/python/hisdata1.py', wdir='D:/python')
File "C:\Users\M.Sravan kumar\Anaconda2\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(filename, namespace)
File "C:\Users\M.Sravan kumar\Anaconda2\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 95, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc)
File "D:/python/hisdata1.py", line 33, in records = kite.historical_data(instrument_token,from_date,to_date,interval)
File "C:\Users\M.Sravan kumar\AppData\Roaming\Python\Python27\site-packages\kiteconnect\connect.py", line 630, in historical_data "oi": 1 if oi else 0
File "C:\Users\M.Sravan kumar\AppData\Roaming\Python\Python27\site-packages\kiteconnect\connect.py", line 817, in _get return self._request(route, "GET", params)
File "C:\Users\M.Sravan kumar\AppData\Roaming\Python\Python27\site-packages\kiteconnect\connect.py", line 886, in _request raise exp(data["message"], code=r.status_code)
PermissionException: Insufficient permission for that call.
from where i can get subscription for historical data