nautilus_model::events::order

Trait OrderEvent

Source
pub trait OrderEvent: 'static + Send {
Show 42 methods // Required methods fn id(&self) -> UUID4; fn kind(&self) -> &str; fn order_type(&self) -> Option<OrderType>; fn order_side(&self) -> Option<OrderSide>; fn trader_id(&self) -> TraderId; fn strategy_id(&self) -> StrategyId; fn instrument_id(&self) -> InstrumentId; fn trade_id(&self) -> Option<TradeId>; fn currency(&self) -> Option<Currency>; fn client_order_id(&self) -> ClientOrderId; fn reason(&self) -> Option<Ustr>; fn quantity(&self) -> Option<Quantity>; fn time_in_force(&self) -> Option<TimeInForce>; fn liquidity_side(&self) -> Option<LiquiditySide>; fn post_only(&self) -> Option<bool>; fn reduce_only(&self) -> Option<bool>; fn quote_quantity(&self) -> Option<bool>; fn reconciliation(&self) -> bool; fn price(&self) -> Option<Price>; fn last_px(&self) -> Option<Price>; fn last_qty(&self) -> Option<Quantity>; fn trigger_price(&self) -> Option<Price>; fn trigger_type(&self) -> Option<TriggerType>; fn limit_offset(&self) -> Option<Price>; fn trailing_offset(&self) -> Option<Price>; fn trailing_offset_type(&self) -> Option<TrailingOffsetType>; fn expire_time(&self) -> Option<UnixNanos>; fn display_qty(&self) -> Option<Quantity>; fn emulation_trigger(&self) -> Option<TriggerType>; fn trigger_instrument_id(&self) -> Option<InstrumentId>; fn contingency_type(&self) -> Option<ContingencyType>; fn order_list_id(&self) -> Option<OrderListId>; fn linked_order_ids(&self) -> Option<Vec<ClientOrderId>>; fn parent_order_id(&self) -> Option<ClientOrderId>; fn exec_algorithm_id(&self) -> Option<ExecAlgorithmId>; fn exec_spawn_id(&self) -> Option<ClientOrderId>; fn venue_order_id(&self) -> Option<VenueOrderId>; fn account_id(&self) -> Option<AccountId>; fn position_id(&self) -> Option<PositionId>; fn commission(&self) -> Option<Money>; fn ts_event(&self) -> UnixNanos; fn ts_init(&self) -> UnixNanos;
}

Required Methods§

Source

fn id(&self) -> UUID4

Source

fn kind(&self) -> &str

Source

fn order_type(&self) -> Option<OrderType>

Source

fn order_side(&self) -> Option<OrderSide>

Source

fn trader_id(&self) -> TraderId

Source

fn strategy_id(&self) -> StrategyId

Source

fn instrument_id(&self) -> InstrumentId

Source

fn trade_id(&self) -> Option<TradeId>

Source

fn currency(&self) -> Option<Currency>

Source

fn client_order_id(&self) -> ClientOrderId

Source

fn reason(&self) -> Option<Ustr>

Source

fn quantity(&self) -> Option<Quantity>

Source

fn time_in_force(&self) -> Option<TimeInForce>

Source

fn liquidity_side(&self) -> Option<LiquiditySide>

Source

fn post_only(&self) -> Option<bool>

Source

fn reduce_only(&self) -> Option<bool>

Source

fn quote_quantity(&self) -> Option<bool>

Source

fn reconciliation(&self) -> bool

Source

fn price(&self) -> Option<Price>

Source

fn last_px(&self) -> Option<Price>

Source

fn last_qty(&self) -> Option<Quantity>

Source

fn trigger_price(&self) -> Option<Price>

Source

fn trigger_type(&self) -> Option<TriggerType>

Source

fn limit_offset(&self) -> Option<Price>

Source

fn trailing_offset(&self) -> Option<Price>

Source

fn trailing_offset_type(&self) -> Option<TrailingOffsetType>

Source

fn expire_time(&self) -> Option<UnixNanos>

Source

fn display_qty(&self) -> Option<Quantity>

Source

fn emulation_trigger(&self) -> Option<TriggerType>

Source

fn trigger_instrument_id(&self) -> Option<InstrumentId>

Source

fn contingency_type(&self) -> Option<ContingencyType>

Source

fn order_list_id(&self) -> Option<OrderListId>

Source

fn linked_order_ids(&self) -> Option<Vec<ClientOrderId>>

Source

fn parent_order_id(&self) -> Option<ClientOrderId>

Source

fn exec_algorithm_id(&self) -> Option<ExecAlgorithmId>

Source

fn exec_spawn_id(&self) -> Option<ClientOrderId>

Source

fn venue_order_id(&self) -> Option<VenueOrderId>

Source

fn account_id(&self) -> Option<AccountId>

Source

fn position_id(&self) -> Option<PositionId>

Source

fn commission(&self) -> Option<Money>

Source

fn ts_event(&self) -> UnixNanos

Source

fn ts_init(&self) -> UnixNanos

Implementors§