Skip to main content

OrderSnapshot

Type Alias OrderSnapshot 

Source
pub type OrderSnapshot<ExchangeKey = ExchangeIndex, AssetKey = AssetIndex, InstrumentKey = InstrumentIndex> = Order<ExchangeKey, InstrumentKey, OrderState<AssetKey, InstrumentKey>>;
Expand description

Convenient type alias for an Order OrderState snapshot.

Aliased Type§

pub struct OrderSnapshot<ExchangeKey = ExchangeIndex, AssetKey = AssetIndex, InstrumentKey = InstrumentIndex> {
    pub key: OrderKey<ExchangeKey, InstrumentKey>,
    pub side: Side,
    pub price: Decimal,
    pub quantity: Decimal,
    pub kind: OrderKind,
    pub time_in_force: TimeInForce,
    pub state: OrderState<AssetKey, InstrumentKey>,
}

Fields§

§key: OrderKey<ExchangeKey, InstrumentKey>§side: Side§price: Decimal§quantity: Decimal§kind: OrderKind§time_in_force: TimeInForce§state: OrderState<AssetKey, InstrumentKey>