Executed limit orders

Custom indicators, trading strategies, data export and recording and more...
hedgefair
Posts: 11
Joined: Wed Nov 13, 2019 6:49 pm

Executed limit orders

Post by hedgefair » Fri Dec 27, 2019 3:33 pm

When a trade is executed I can get tradeInfo.passiveOrderId

How can I get more info of the limit order executed(the history of the order):
1.-
 time when it was created.
2.-
Initial size
3.-
Time of modification(if it is the case) and new size

Thanks

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Executed limit orders

Post by Andry API support » Fri Dec 27, 2019 4:00 pm

Hi hedgefair,
are you using the Simplified API?
If yes, just track everything happening to your orders. Implement OrdersAdapter and on every order update (onOrderUpdated) make a record for your order. Orders can be recognized by clientId field (assigned by Bookmap) of an OrderInfoUpdate object but you should also store orderId (notice: it can be changed over an order's lifetime).
In case of execution take orderId to find the corresponding clientId. Once you have your clientId you have access to your records for this order.

Post Reply