Skip to main content

ComplexOrderComponent

Struct ComplexOrderComponent 

Source
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

Source§

fn clone(&self) -> ComplexOrderComponent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComplexOrderComponent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ComplexOrderComponent

Source§

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 Display for ComplexOrderComponent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ComplexOrderComponent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromTastyResponse<T> for T

Source§

fn from_tasty(resp: Response<T>) -> Result<T, TastyTradeError>

Builds Self from resp, or explains why it cannot.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more