on_order_update details

Kamalv
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?
Tagged:
  • rakeshr
    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.
    This thread explains more on order placement inside on_connect ticker thread. You can check websocket order update format here.
    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.
  • Kamalv
    @rakeshr thanks for the response. Lemme try
  • confused_investor

    I'm not getting any updates here when I place an order or modify or cancel it.
  • rakeshr
    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.
  • confused_investor
    Are those AMO orders?
    Yes
    Are you placing it from the web or app?
    Web
    Have you added proper callback for order update in websocket?
    Not sure what that means. If you're talking about

    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?
  • rakeshr
    The whole scenario is explained in this thread.
  • confused_investor
    The whole scenario is not explained. It doesn't talk about AMO orders. But I can guess all the answers now.
This discussion has been closed.