Before too. I usually test if the order is placed when your adapter is down. This time I tested it at 9.11AM when you can't place any orders. Usually, I get a rejected order in the site, but, this time it didn't get placed to the site at all, with the above-mentioned error. I'm not sure if it happens after 9.15
@rishiswethan As the error describes, there was gateway time out from OMS. If NetworkException happens while placing an order you need to handle exception at your end and then check the orderbook(if order already placed),if not then retry placing order.
Hi @rishiswethan, This is basically because we process more orders than what the exchange lease lines could handle at the market opening. We have applied for more lease lines but it is a slow and tedious process. We are trying our best to get it resolved.
This issue is still present. It works about 25% of times, making it very unreliable. Even after 3 retries, it's not executed. Please check into the issue, all other types of placing orders except for modify order doesn't seem to have this issue
I'm currently forced to use alternates to the modify_order function because of this. It's really unfortunate that I have to do this. Kindly make the necessary measures and let us know if and when they are done. Looking forward to the improvements
Is it happening specifically only at 9:15 AM or post 9:15 AM also?
Can you post the log traceback?
kite.modify_order(variety=order['variety'], order_id=order['order_id'], parent_order_id=order['parent_order_id'], order_type='MARKET')
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.6-py3.6.egg\kiteconnect\connect.py", line 346, in modify_order
return self._put("order.modify", params)["order_id"]
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.6-py3.6.egg\kiteconnect\connect.py", line 705, in _put
return self._request(route, "PUT", params)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.6-py3.6.egg\kiteconnect\connect.py", line 766, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.NetworkException: NEST gateway timed out.
@rakeshr This is the traceback. I got the error just now
As the error describes, there was gateway time out from OMS.
If NetworkException happens while placing an order you need to handle exception at your end and then check the orderbook(if order already placed),if not then retry placing order.
This is basically because we process more orders than what the exchange lease lines could handle at the market opening. We have applied for more lease lines but it is a slow and tedious process. We are trying our best to get it resolved.
https://pastebin.com/ePVyX5B2