pub struct Order {Show 20 fields
pub id: OrderId,
pub parent_id: Option<OrderId>,
pub exchange_order_id: Option<String>,
pub recv_time: i64,
pub recv_time_ns: u32,
pub status: OrderStatus,
pub reject_reason: Option<OrderRejectReason>,
pub reject_message: Option<String>,
pub symbol: TradableProduct,
pub trader: UserId,
pub account: AccountId,
pub dir: Dir,
pub quantity: Decimal,
pub filled_quantity: Decimal,
pub average_fill_price: Option<Decimal>,
pub order_type: OrderType,
pub time_in_force: TimeInForce,
pub source: OrderSource,
pub execution_venue: ExecutionVenue,
pub is_short_sale: Option<bool>,
}
Expand description
Fields§
§id: OrderId
§parent_id: Option<OrderId>
§exchange_order_id: Option<String>
§recv_time: i64
Timestamp that the Architect OMS first received the order.
For reconciled orders, this could be very far in the future relative to the exchange order timestamp.
recv_time_ns: u32
§status: OrderStatus
§reject_reason: Option<OrderRejectReason>
§reject_message: Option<String>
§symbol: TradableProduct
§trader: UserId
§account: AccountId
§dir: Dir
§quantity: Decimal
§filled_quantity: Decimal
§average_fill_price: Option<Decimal>
§order_type: OrderType
§time_in_force: TimeInForce
§source: OrderSource
§execution_venue: ExecutionVenue
§is_short_sale: Option<bool>
Implementations§
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
Source§impl JsonSchema for Order
impl JsonSchema for Order
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl Eq for Order
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 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