In BO API, how can we know which order is placed ? SL or Square off?

Irshad
Hi,
I am placing an bracket order through API. My BO is triggered, after which how can I know whether my Square off is triggered or SL order is triggered.

Thanks,
Irshad
Tagged:
  • sujith
    A target order will be of type limit and stop-loss order will be of type SL-M.
    You can get order updates via webockets and postbacks. You can choose anyone of these.
  • Irshad
    Hi Sujith,
    I understood that using order type we can check which orders gets executed. But I have one more query,
    Once we place BO, it will return one order_id, using which we can check if BO gets triggered or not ? But after it got triggered how can we get ID of other two orders (SL & Target)

    Thanks,
    Irshad
  • sujith
    You can check out this thread.
  • Irshad
    Apart from iterating through order is there any other way to get those IDs.
  • sujith
    Yes, You get order updates via websockets.
  • Irshad
    Which websockets? I am using python script.
Sign In or Register to comment.