#[non_exhaustive]pub struct Order {Show 24 fields
pub id: OrderId,
pub symbol: SymbolId,
pub side: TradeSide,
pub volume: Volume,
pub kind: OrderType,
pub status: OrderStatus,
pub time_in_force: TimeInForce,
pub limit_price: Option<Price>,
pub stop_price: Option<Price>,
pub stop_loss: Option<Price>,
pub take_profit: Option<Price>,
pub relative_stop_loss: Option<Price>,
pub relative_take_profit: Option<Price>,
pub slippage_points: Option<u32>,
pub executed_volume: Option<Volume>,
pub execution_price: Option<Price>,
pub position: Option<PositionId>,
pub label: Option<String>,
pub comment: Option<String>,
pub client_order_id: Option<String>,
pub closing: bool,
pub trailing_stop_loss: bool,
pub opened: Option<Timestamp>,
pub updated: Option<Timestamp>,
}Expand description
Order as the server knows it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: OrderIdIdentifier of the order.
symbol: SymbolIdSymbol the order trades.
side: TradeSideDirection of the order.
volume: VolumeVolume of the order, in units of the symbol.
kind: OrderTypeKind of the order.
status: OrderStatusState of the order.
time_in_force: TimeInForceHow long the order stays in force.
limit_price: Option<Price>Limit price of a limit order.
stop_price: Option<Price>Stop price of a stop or stop-limit order.
stop_loss: Option<Price>Stop loss as a price.
take_profit: Option<Price>Take profit as a price.
relative_stop_loss: Option<Price>Stop loss as a distance from the price of execution.
relative_take_profit: Option<Price>Take profit as a distance from the price of execution.
slippage_points: Option<u32>Slippage allowed to a market-range or stop-limit order, in points.
executed_volume: Option<Volume>Volume executed so far.
execution_price: Option<Price>Price the order was executed at.
position: Option<PositionId>Position the order opened, changes or closes.
label: Option<String>Label the client gave the order.
comment: Option<String>Comment of the order.
client_order_id: Option<String>Identifier the client gave the order.
closing: boolTells whether the order closes a position or a part of one.
trailing_stop_loss: boolTells whether the stop loss follows the price.
opened: Option<Timestamp>Moment the order was created.
updated: Option<Timestamp>Moment the order last changed.