It looks like you're new here. If you want to get involved, click one of these buttons!
File "C:\Users\krishna gupta\py_venv\lib\site-packages\kiteconnect\connect.py", line 621, in historical_data
data = self._get("market.historical",
File "C:\Users\krishna gupta\py_venv\lib\site-packages\kiteconnect\connect.py", line 836, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
File "C:\Users\krishna gupta\py_venv\lib\site-packages\kiteconnect\connect.py", line 912, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.NetworkException: Too many requests
In this code, I made the same function for fetching Historical data, and I called that same function 3 times in a second. and here I'm using a threading method for calling this function 3 times.
https://kite.trade/docs/connect/v3/exceptions/#api-rate-limit
Go through the FAQs here to know about enabling debug logs.