Jump to content
Kush

How to find out if opened trade was a triggered order

Recommended Posts

Hi,

How can I find out if the open trade was a triggered order?

I have looked on the trade history and GetOrder, and it shows with a status of open. So, I can't tell if this was opened by user or a triggered order.

Kind regards,

Kush

Share this post


Link to post

Hi,

One way is by subscribing to the Orders stream and receiving an update when an order is triggered, or the successful completion of a trade opened by a user. The order update information on the stream includes a Type field. This shows a value of (1 = Trade / 2 = Stop / 3 = Limit).    

Kind regards, PM

Share this post


Link to post

Yes, I was thinking the Order Stream would be able to pick up the change. However do you know if the status would be set to 'Triggered' if it was previously a pending order and 'Open' if it was a trade opened by user?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×