Skip to main content

UnindexedOrder

Type Alias UnindexedOrder 

Source
pub type UnindexedOrder = Order<ExchangeId, InstrumentNameExchange, UnindexedOrderState>;
Expand description

Convenient type alias for an Order keyed with ExchangeId and InstrumentNameExchange.

Aliased Type§

pub struct UnindexedOrder {
    pub key: OrderKey<ExchangeId, InstrumentNameExchange>,
    pub side: Side,
    pub price: Option<Decimal>,
    pub quantity: Decimal,
    pub kind: OrderKind,
    pub time_in_force: TimeInForce,
    pub state: OrderState<AssetNameExchange, InstrumentNameExchange>,
}

Fields§

§key: OrderKey<ExchangeId, InstrumentNameExchange>§side: Side§price: Option<Decimal>

Limit price for the order. None for Market/Stop/TrailingStop orders.

§quantity: Decimal§kind: OrderKind§time_in_force: TimeInForce§state: OrderState<AssetNameExchange, InstrumentNameExchange>