orderbook fetch issue

Guhan
I am facing the below error, while trying to fetch order book
Zerodha order_book fetch error:HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7).

My algo is hosted in aws, also I checked the reach-ability of my instance, all good in that regard. Actually facing this quite frequently now.
  • rakeshr
    @Guhan
    HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
    We are aware about this time-out issue occuring intermittently for few GET queries. We are working on the fix. Will update here once fix is patched.
    For time being, you can handle such intermittent time-out instances at your end. Something like:
    from requests.exceptions import ReadTimeout
    try:
    # Make the required request
    except ReadTimeout:
    # In case of time-out handle it and repeat the request again with some delay/sleep
Sign In or Register to comment.