Hi, In python code I have using dictionary for saving option data like as order id, trading symbol etc for nifty and bank nifty. After push the order its showing invalid 'order_id'
I paste the few part of my coding. watchlist = ['NIFTY BANK', NIFTY 50']
It's recommended to add some delay between placing order and checking orderbook for the same.
Also,make sure you are using correct order_id.
I faced several issues due to not getting Order_id (kite.orders()) immediately after placing a Market Order (kite.placeorder()).
@SRIJAN
Could you please suggest the minimum delay seconds?
Thanks,
Madhu
Maybe,its enough to add around 2 seconds delay.
However,the delay can be more at market start :
https://support.zerodha.com/category/trading-and-markets/corporate-actions/general/articles/delay-in-order-execution-during-the-market-opening
Best way is to use order updates through websocket,
and use the updates as events to fetch orderbook.
Yes,you can use on_order_update even if you haven't subscribed to any instrument.