nautilus_execution::trailing

Function trailing_stop_calculate_with_last

Source
pub fn trailing_stop_calculate_with_last(
    price_increment: Price,
    trailing_offset_type: TrailingOffsetType,
    side: OrderSideSpecified,
    offset: Decimal,
    last: Price,
) -> Result<Price>