API Support Forum
User Profile

Viewing User Profile for: AKucinskas7573


About

May 19, 2020 09:37 AM

Dec 21, 2020 12:40 PM

Dec 21, 2020 01:09 PM



Post Statistics
AKucinskas7573 has contributed to 1 posts out of 5245 total posts (0.02%) in 611 days (0.00 posts per day).

20 most recent posts:

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.