Historical data for "NIFTY ALPHA 50" for one-day period is always for the last day. However, historical data for shorter periods exist. Why so? Even on TVC or CIQ charts, 1D chart is shown for only one day. Whereas, tradingview.com shows 1D correctly.
Hi All, I am getting below error for historical data.. do I need to get any specific access for historical data ?
- File "c:/Users/Tushar/Desktop/temp/python/test.py", line 30, in get_historical_data return kite.historical_data(instrument_token, from_date, to_date, interval) File "C:\Users\Tushar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kiteconnect\connect.py", line 624, in historical_data data = self._get("market.historical", { File "C:\Users\Tushar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kiteconnect\connect.py", line 817, in _get return self._request(route, "GET", params) File "C:\Users\Tushar\AppData\Local\Programs\Python\Python38-32\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.
Please check https://kite.zerodha.com/chart/ext/tvc/INDICES/NIFTY ALPHA 50/265993
For 1D/1W/1M periods, there's only one candle; whereas, for lower periods candles are shown from past (6 months and more).
Similarly,
historical_data()
retrieves only for one day for 1D period, but able to retrieve past data for periods less than 1D.Yeah, historical day candle seems to be missing. We are looking at this.
Data team is working on this. We will update here, once added.
- File "c:/Users/Tushar/Desktop/temp/python/test.py", line 30, in get_historical_data
return kite.historical_data(instrument_token, from_date, to_date, interval)
File "C:\Users\Tushar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kiteconnect\connect.py", line 624, in historical_data
data = self._get("market.historical", {
File "C:\Users\Tushar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\kiteconnect\connect.py", line 817, in _get
return self._request(route, "GET", params)
File "C:\Users\Tushar\AppData\Local\Programs\Python\Python38-32\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 can check out FAQs here.
You can go through this thread.
It's in progress. Once done, we will update it here.
May I get a response on the current state?
historical_data()
to fetch past data. Thank you.