It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
In BO API, how can we know which order is placed ? SL or Square off?
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.
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.
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)
You can check out
Apart from iterating through order is there any other way to get those IDs.
Yes, You get order updates via websockets.
Which websockets? I am using python script.