pub async fn initialize_position_tracking(
client: &Arc<Client>,
account_id: AccountId,
position_tracker: PositionTracker,
) -> Result<()>Expand description
Initialize position tracking with existing positions.
This fetches all current positions and initializes the position tracker to avoid processing duplicates from execDetails.
ยงErrors
Returns an error if position request fails.