kiteconnect.exceptions.NetworkException: Too many requests

1krishnagupta
I'm Getting This error while fetching Historical Data.
I'm sending 3 requests in a single second. but according to Kite Historical API, I can send 3 requests in a second, then why it is giving this error?

it is complete error -
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.
Sign In or Register to comment.