pub struct ComplexOrderComponent {Show 30 fields
pub id: Option<String>,
pub account_number: Option<AccountNumber>,
pub complex_order_id: Option<String>,
pub complex_order_tag: Option<String>,
pub status: Option<OrderStatus>,
pub contingent_status: Option<String>,
pub order_type: Option<OrderType>,
pub time_in_force: Option<TimeInForce>,
pub gtc_date: Option<NaiveDate>,
pub size: Option<Decimal>,
pub underlying_symbol: Option<Symbol>,
pub underlying_instrument_type: Option<InstrumentType>,
pub price: Option<Decimal>,
pub price_effect: Option<PriceEffect>,
pub value: Option<Decimal>,
pub value_effect: Option<PriceEffect>,
pub stop_trigger: Option<Decimal>,
pub cancellable: Option<bool>,
pub editable: Option<bool>,
pub edited: Option<bool>,
pub cancelled_size: Option<Decimal>,
pub reject_reason: Option<String>,
pub replaces_order_id: Option<String>,
pub replacing_order_id: Option<String>,
pub leg_count: Option<i64>,
pub legs: Vec<Value>,
pub live_at: Option<DateTime<FixedOffset>>,
pub received_at: Option<DateTime<FixedOffset>>,
pub cancelled_at: Option<DateTime<FixedOffset>>,
pub terminal_at: Option<String>,
}Expand description
One component order of a ComplexOrder.
Modelled separately from crate::prelude::LiveOrderRecord because the
identifiers are strings and almost every field is optional here — the venue
sends what applies to the component’s stage.
Fields§
§id: Option<String>The component’s identifier.
account_number: Option<AccountNumber>Which account it belongs to. Account PII.
complex_order_id: Option<String>Which container it belongs to.
complex_order_tag: Option<String>The venue’s tag for this component’s role.
status: Option<OrderStatus>Its current status.
contingent_status: Option<String>Whether it is waiting on a trigger.
order_type: Option<OrderType>What kind of order it is.
time_in_force: Option<TimeInForce>How long it rests.
gtc_date: Option<NaiveDate>When a good-til-date component expires.
size: Option<Decimal>Its size.
underlying_symbol: Option<Symbol>The underlying.
underlying_instrument_type: Option<InstrumentType>What kind of instrument the underlying is.
price: Option<Decimal>Its price, for order types that have one.
price_effect: Option<PriceEffect>Whether the price is a debit or a credit.
value: Option<Decimal>Its notional value.
value_effect: Option<PriceEffect>Whether the value is a debit or a credit.
stop_trigger: Option<Decimal>The stop trigger, for stop and stop-limit components.
cancellable: Option<bool>Whether it can be cancelled.
editable: Option<bool>Whether it can be edited.
edited: Option<bool>Whether it has been edited.
cancelled_size: Option<Decimal>How much of it was cancelled.
reject_reason: Option<String>Why the venue rejected it, when it did.
Venue prose written for a person; it belongs in front of somebody
rather than in tracing.
replaces_order_id: Option<String>The order this one replaces.
replacing_order_id: Option<String>The order replacing this one.
leg_count: Option<i64>How many legs it has.
legs: Vec<Value>Its legs, as the venue echoes them.
live_at: Option<DateTime<FixedOffset>>When it went live, offset preserved.
received_at: Option<DateTime<FixedOffset>>When it was received, offset preserved.
cancelled_at: Option<DateTime<FixedOffset>>When it was cancelled, offset preserved.
terminal_at: Option<String>When it became terminal.
Trait Implementations§
Source§impl Clone for ComplexOrderComponent
impl Clone for ComplexOrderComponent
Source§fn clone(&self) -> ComplexOrderComponent
fn clone(&self) -> ComplexOrderComponent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComplexOrderComponent
impl Debug for ComplexOrderComponent
Source§impl<'de> Deserialize<'de> for ComplexOrderComponent
impl<'de> Deserialize<'de> for ComplexOrderComponent
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>,
Source§impl Display for ComplexOrderComponent
impl Display for ComplexOrderComponent
Auto Trait Implementations§
impl Freeze for ComplexOrderComponent
impl RefUnwindSafe for ComplexOrderComponent
impl Send for ComplexOrderComponent
impl Sync for ComplexOrderComponent
impl Unpin for ComplexOrderComponent
impl UnsafeUnpin for ComplexOrderComponent
impl UnwindSafe for ComplexOrderComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FromTastyResponse<T> for T
impl<T> FromTastyResponse<T> for T
Source§fn from_tasty(resp: Response<T>) -> Result<T, TastyTradeError>
fn from_tasty(resp: Response<T>) -> Result<T, TastyTradeError>
Self from resp, or explains why it cannot.