It looks like you're new here. If you want to get involved, click one of these buttons!
kite.place_order(3. How we handle it right now
tradingsymbol="NIFTY26JUL24150CE",
exchange=kite.EXCHANGE_NFO,
transaction_type=kite.TRANSACTION_TYPE_SELL,
quantity=65,
order_type=kite.ORDER_TYPE_MARKET,
product=kite.PRODUCT_NRML,
variety=kite.VARIETY_REGULAR,
market_protection=kite.MARKET_PROTECTION_AUTO,
tag="<20-char tag from our client_order_id>",
)
A ReadTimeout indicates that the client did not receive a response within the configured timeout period. We recommend treating such cases as uncertain and reconciling the order status by fetching the orderbook before attempting to place the order again. This helps avoid duplicate order placement.
You can handle the exception as shown below: If the order is not found in the orderbook after reconciliation, you may proceed with your retry logic.