The orders process from the logs are
1. Buy to cover Quantity 5 --> closes the current short positions
2. Buy Quantity 5 --> new Long position
During the execution of the above orders on each event to ExecutionUpdate (of account) how do get the current account positions ?
As these are 5 positions , not all 5 positions can be filled at the same time and some are partfilled(OrderState.PartFilled)
Is there way to identify in the AddOn if this is an reverse order is triggered and the related orders...
During the ExecutionUpdate event triggers, how to get the accurate current/existing account positions ?

Comment