Order is getting placed after python API gives error.

KamalChhirang
KamalChhirang edited June 2021 in General
I tried to place an order today in Python, but I got this error:
Error in placing Target HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
So, I caught this exception and placed another order, and It got placed.

But after around 38 seconds, the initial order also got placed. I am getting 1 extra unwanted order getting placed.

This timeout error is happening a lot during the first few minutes of market open, also the API is working slow during first few minutes of market open.

Please let me know, how can I avoid getting double order placed.
Sign In or Register to comment.