While placing order through kite_connect_API with Python, During first 2/3 minutes of the day while the order is sent we are getting an exception in most of the times 'Couldn't find that `order_id`. Immediately we can find a trade BUY or SELL in the Kite terminal and that is lying abundant and further action like Exit with Profit or SL not hitting and not following any instructions further. Finally we are squaring it off manually.
--We have written the following Python code, sending it for your reference
oid = kite.place_order(tradingsymbol=comp, exchange=comp, transaction_type=comp, quantity=lots, order_type=comp, product=comp, variety = "regular") #print("Time after receiving order Id", datetime.now()) print ("Order Id : ", oid) hist = '' hist = kite.order_history(order_id = oid)