It looks like you're new here. If you want to get involved, click one of these buttons!
margin = kite.margins()
File "/home/ubuntu/.local/lib/python3.8/site-packages/kiteconnect/connect.py", line 315, in margins
return self._get("user.margins")
File "/home/ubuntu/.local/lib/python3.8/site-packages/kiteconnect/connect.py", line 817, in _get
return self._request(route, "GET", params)
File "/home/ubuntu/.local/lib/python3.8/site-packages/kiteconnect/connect.py", line 886, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.NetworkException: request WC1ZW1wDSlFL4TRDi1GTKbfQ3uRGlzl3 timed out
As post-midnight OMS runs the BOD process till around 6:30 AM and during that time it will not accept any requests.
kiteconnect.exceptions.NetworkException
Can you please suggest a way to handle such unforeseen API downtime in future?