Skip to main content

map_time_in_force

Function map_time_in_force 

Source
pub fn map_time_in_force(
    order_type: BybitOrderType,
    time_in_force: Option<TimeInForce>,
    post_only: Option<bool>,
) -> Result<Option<BybitTimeInForce>, TimeInForce>
Expand description

Maps Nautilus time-in-force to Bybit’s TIF.

Returns Err(tif) with the unsupported value for caller-specific error wrapping.