Hi @sujith@rakeshr i have few questions on on_order_update. I am opening a position with LIMIT order, upon status='COMPLETE" want to place target & stop loss.
1. I can place an order during on_connect() and get order status in on_order_update callback but not sure return payload. Got some info on search, could you confirm. https://kite.trade/docs/connect/v3/postbacks/
2. If i place 2 orders, will i get response for two orders (on_order_update)?, if yes, will it be list of dictionaries? [{order1_payload},{order2_payload}] or any other format?
3. Can i subscribe and get updates for manually placed orders?
I can place an order during on_connect() and get order status in on_order_update callback but not sure return payload. Got some info on search, could you confirm.
If i place 2 orders, will i get response for two orders (on_order_update)?, if yes, will it be list of dictionaries?
You will get order update status for all placed/pending orders. No, all order statuses are sent as an individual response. So, it will be dict, not a list of dict.
Can i subscribe and get updates for manually placed orders?
Yes, for few order status you can go through this thread to know more about this.
Are those AMO orders? Are you placing it from the web or app? Have you added proper callback for order update in websocket? Go through the above-mentioned thread once.
No, all order statuses are sent as an individual response. So, it will be dict, not a list of dict. Yes, for few order status you can go through this thread to know more about this.
I'm not getting any updates here when I place an order or modify or cancel it.
Go through the above-mentioned thread once.
kws.on_order_update = on_order_update
then yes.
I tried it again during market hours and things worked fine. Does this only work during market hours and for regular order only?