ReadTimeout exception in kite.ltp API

mlearner

Got below exception at around 1:10 PM IST, 5 Jan '21 while invoking LTP API. This happened for about 2-3 minutes. And then did not have this problem.

Any issues with LTP API?

last_pos_price = kite.ltp(inst1,inst2)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/kiteconnect/connect.py", line 595, in ltp
return self._get("market.quote.ltp", {"i": ins})
File "/home/ubuntu/.local/lib/python3.6/site-packages/kiteconnect/connect.py", line 817, in _get
return self._request(route, "GET", params)
File "/home/ubuntu/.local/lib/python3.6/site-packages/kiteconnect/connect.py", line 865, in _request
raise e
File "/home/ubuntu/.local/lib/python3.6/site-packages/kiteconnect/connect.py", line 862, in _request
proxies=self.proxies)
File "/home/ubuntu/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
Tagged:
Sign In or Register to comment.