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
Executed limit orders
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Executed limit orders
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.
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.