Skip to main content

check_external_position_change

Function check_external_position_change 

Source
pub async fn check_external_position_change(
    position_tracker: &PositionTracker,
    contract_id: i32,
    new_quantity: Decimal,
) -> Option<(bool, Decimal)>
Expand description

Check if a position update represents an external change (e.g., option exercise).