#[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
A ProjectX order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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 current trailing-stop price.
parent_order_id: Option<OrderId>Parent order for a bracket child, when supplied.
linked_order_id: Option<OrderId>Provider-linked peer order, when supplied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more