It looks like you're new here. If you want to get involved, click one of these buttons!
2019-02-04 09:15:12,280 __main__ CRITICAL ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)"))Let me know what is supposed to be done so I could continue in 'exception' block!
except ReadTimeout:
?
Is re-instantiation of kite object a way to go? Also, what'sup with the error?
We are already looking to timeout error.For time being you can handle timeout exception in your code.
Yeah, this is correct.
order = pyTrade.order_history(order_id=stockCtx['orderId'])
File "build\bdist.win-amd64\egg\kiteconnect\connect.py", line 387, in order_history
File "build\bdist.win-amd64\egg\kiteconnect\connect.py", line 697, in _get
File "build\bdist.win-amd64\egg\kiteconnect\connect.py", line 745, in _request
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out.
We checked for multiple order_history API response at our end, not able to reproduce Timeout exception at any instance. Make sure that you have added proper delay between multiple API calls.
It's only for the order whose order_status is changed, while WebSocket code is running. Post back status is received only for orders whose status is changed during your WebSocket code running.
In case of disconnection, once you reconnect, you can fetch complete orderbook once and check change status for required order, check the documentation here.
is this error same as above ReadTimeout? is the same exception to be used for this (except ReadTimeout)?