kiteconnect.exceptions.NetworkException when placing buy orders using place_order() at 3.20PM

rishiswethan
Although I get a network exception, the order is placed, and, my exception handling is triggered making me place the same order twice. This has been happening for the past 3 days. I've not been using multithreading and no other requests were placed at the moment. I've not changed the code for a month and it was working perfectly before. There is no problem when placing orders in the morning, this is happening only in the evening

order_id1 = kite.place_order(variety="regular", exchange=exchange,
tradingsymbol=stock_name,
transaction_type="BUY", quantity=quantity,
product=product,
order_type=kite.ORDER_TYPE_MARKET,
price=None, validity="DAY", disclosed_quantity=None,
trigger_price=None,
squareoff=None,
stoploss=None,
trailing_stoploss=None,
tag=None)
Sign In or Register to comment.