PermissionException: Insufficient permission for that call.

s2k
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.
  • sujith
    sujith edited May 2020
    You need to subscribe, in order to use historical data. You can check out FAQs here.
  • s2k
    i have already paid 2000 for kite connect.
    from where i can get subscription for historical data
  • sujith
    You can go to the app details page on the developers console and on the right side of the page you can see an option to subscribe to historical data.
  • s2k
    thank you sujith i got it.
This discussion has been closed.