Read Timed out

balajibetadur
Unable to place orders. Getting Read Timed out error.
Message : HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
  • SRIJAN
    You have to handle this error with try except block.
  • SRIJAN
    from requests.exceptions import ReadTimeout

    while True:
    try:
    kite.place_order(order_params)
    break
    except ReadTimeout:
    pass
  • balajibetadur
    I am handling it with try-except block, but even after 3 tries, it's showing the same error. Orders are not being placed.
  • SRIJAN
    Check if your connection is stable. Or,try increasing the timeout.
  • balajibetadur
    It started working now without making any changes. And where can I change the timeout?
  • balajibetadur
    I am using a place_order function

    def place_order( self, variety, exchange, tradingsymbol, transaction_type, quantity, product, order_type, price=None, validity=None, disclosed_quantity=None, trigger_price=None, squareoff=None, stoploss=None, trailing_stoploss=None, tag=None)
  • SRIJAN
    Find the answer yourself.
  • sujith
    @balajibetadur,
    We only deal with Kite Connect related queries on this forum. We don't provide support for programming.
Sign In or Register to comment.