How much time it takes to get the historical data.

vatsa
Hi
I subscribed to historical data for my app. The expiry shows 1 month from now. But when i try to get the historical data it gives below error.

Or am i am missing somethings?

---------------------------------------------------------------------------
PermissionException Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_17304\3114211674.py in
----> 1 kite.historical_data(instrument_token = 2953217,from_date = formatted_date_last_month, to_date=formatted_date, interval="day")

~\Anaconda3\envs\kite\lib\site-packages\kiteconnect\connect.py in historical_data(self, instrument_token, from_date, to_date, interval, continuous, oi)
629 to_date_string = to_date.strftime(date_string_format) if type(to_date) == datetime.datetime else to_date
630
--> 631 data = self._get("market.historical",
632 url_args={"instrument_token": instrument_token, "interval": interval},
633 params={

~\Anaconda3\envs\kite\lib\site-packages\kiteconnect\connect.py in _get(self, route, url_args, params, is_json)
849 def _get(self, route, url_args=None, params=None, is_json=False):
850 """Alias for sending a GET request."""
--> 851 return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
852
853 def _post(self, route, url_args=None, params=None, is_json=False, query_params=None):

~\Anaconda3\envs\kite\lib\site-packages\kiteconnect\connect.py in _request(self, route, method, url_args, params, is_json, query_params)
925 # native Kite errors
926 exp = getattr(ex, data.get("error_type"), ex.GeneralException)
--> 927 raise exp(data["message"], code=r.status_code)
928
929 return data["data"]

PermissionException: Insufficient permission for that call.

PermissionException: Insufficient permission for that call.
This discussion has been closed.