pub async fn initialize_position_tracking(
client: &Arc<Client>,
ib_account: Ustr,
position_tracker: PositionTracker,
) -> Result<Vec<Contract>>Expand description
Initialize position tracking with existing positions.
This fetches all current positions and initializes the position tracker to avoid processing duplicates from execDetails. Returns the contracts of the tracked positions so their instruments can be published before reconciliation.
ยงErrors
Returns an error if position request fails.