|Order Execution » Getting real time position value Dec 21, 2020 @ 12:40 PM (Total replies: 1)|
I need to get actual position (Volume) for the contract at Client.Orders.OrderFilled event.
I was using old API, which used to return the position with order.Account.AvgPositions[fill.Contract].Net.Volume
But with most recent API it does not return a correct actual position.
Looks like DetailedPositions returns correct value, but I am not sure.
What would be the best way to get actual position, including overnight?
My app is used by the IB and it has many subaccounts.