#[non_exhaustive]pub struct Order {Show 19 fields
pub id: OrderId,
pub account_id: AccountId,
pub contract_id: ContractId,
pub symbol_id: Option<SymbolId>,
pub creation_timestamp: Timestamp,
pub update_timestamp: Timestamp,
pub status: OrderStatus,
pub order_type: OrderType,
pub side: Side,
pub size: i32,
pub limit_price: Option<Decimal>,
pub stop_price: Option<Decimal>,
pub fill_volume: Option<i32>,
pub filled_price: Option<Decimal>,
pub custom_tag: Option<String>,
pub trail_distance: Option<i32>,
pub trail_price: Option<Decimal>,
pub parent_order_id: Option<OrderId>,
pub linked_order_id: Option<OrderId>,
}Expand description
Provider-native request, response, order, position, trade, and market-data models.
Provider-native request, response, order, position, trade, and market-data models.
Provider-native request, response, order, position, trade, and market-data models.
A ProjectX order.
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: OrderIdProvider order identifier.
account_id: AccountIdProvider account.
contract_id: ContractIdProvider contract.
symbol_id: Option<SymbolId>Provider symbol, when included by the endpoint.
creation_timestamp: TimestampProvider creation timestamp.
update_timestamp: TimestampProvider update timestamp.
status: OrderStatusProvider order status.
order_type: OrderTypeProvider order type.
side: SideOrder side.
size: i32Ordered quantity.
limit_price: Option<Decimal>Optional limit price.
stop_price: Option<Decimal>Optional stop price.
fill_volume: Option<i32>Optional cumulative filled quantity.
filled_price: Option<Decimal>Optional average fill price.
custom_tag: Option<String>Optional caller tag.
trail_distance: Option<i32>Optional trailing distance in provider ticks.
trail_price: Option<Decimal>Optional trailing distance in price units (ticks * tick size).
Order searches return a distance here. Placement and modification
instead accept an absolute price level; do not reuse this value as
their trail_price input.
parent_order_id: Option<OrderId>Parent order for a bracket child, when supplied.
linked_order_id: Option<OrderId>Provider-linked peer order, when supplied.