Struct AccountOrder

Source
pub struct AccountOrder {
Show 41 fields pub id: u32, pub symbol: String, pub symbol_id: u32, pub total_quantity: Number, pub open_quantity: Number, pub filled_quantity: Number, pub canceled_quantity: Number, pub side: OrderSide, pub order_type: OrderType, pub limit_price: Option<Number>, pub stop_price: Option<Number>, pub is_all_or_none: bool, pub is_anonymous: bool, pub iceberg_quantity: Option<Number>, pub min_quantity: Option<Number>, pub avg_execution_price: Option<Number>, pub last_execution_price: Option<Number>, pub source: String, pub time_in_force: OrderTimeInForce, pub good_till_date: Option<DateTime<Utc>>, pub state: OrderState, pub rejection_reason: Option<String>, pub chain_id: u32, pub creation_time: DateTime<Utc>, pub update_time: DateTime<Utc>, pub notes: Option<String>, pub primary_route: String, pub secondary_route: Option<String>, pub order_route: String, pub venue_holding_order: Option<String>, pub commission_charged: Number, pub exchange_order_id: String, pub is_significant_shareholder: bool, pub is_insider: bool, pub is_limit_offset_in_dollars: bool, pub user_id: u32, pub placement_commission: Number, pub strategy_type: String, pub trigger_stop_price: Option<Number>, pub order_group_id: u32, pub order_class: Option<String>,
}

Fields§

§id: u32

Internal order identifier.

§symbol: String

Symbol that follows Questrade symbology (e.g., “TD.TO”).

§symbol_id: u32

Internal symbol identifier.

§total_quantity: Number

Total quantity of the order.

§open_quantity: Number

Unfilled portion of the order quantity.

§filled_quantity: Number

Filled portion of the order quantity.

§canceled_quantity: Number

Unfilled portion of the order quantity after cancellation.

§side: OrderSide

Client view of the order side (e.g., “Buy-To-Open”).

§order_type: OrderType

Order price type (e.g., “Market”).

§limit_price: Option<Number>

Limit price.

§stop_price: Option<Number>

Stop price.

§is_all_or_none: bool

Specifies all-or-none special instruction.

§is_anonymous: bool

Specifies Anonymous special instruction.

§iceberg_quantity: Option<Number>

Specifies Iceberg special instruction.

§min_quantity: Option<Number>

Specifies Minimum special instruction.

§avg_execution_price: Option<Number>

Average price of all executions received for this order.

§last_execution_price: Option<Number>

Price of the last execution received for the order in question.

§source: String

Identifies the software / gateway where the order originated

§time_in_force: OrderTimeInForce§good_till_date: Option<DateTime<Utc>>

Good-Till-Date marker and date parameter

§state: OrderState

Current order state

§rejection_reason: Option<String>

Human readable order rejection reason message.

§chain_id: u32

Internal identifier of a chain to which the order belongs.

§creation_time: DateTime<Utc>

Order creation time.

§update_time: DateTime<Utc>

Time of the last update.

§notes: Option<String>

Notes that may have been manually added by Questrade staff.

§primary_route: String§secondary_route: Option<String>§order_route: String

Order route name.

§venue_holding_order: Option<String>

Venue where non-marketable portion of the order was booked.

§commission_charged: Number

Total commission amount charged for this order.

§exchange_order_id: String

Identifier assigned to this order by exchange where it was routed.

§is_significant_shareholder: bool

Whether user that placed the order is a significant shareholder.

§is_insider: bool

Whether user that placed the order is an insider.

§is_limit_offset_in_dollars: bool

Whether limit offset is specified in dollars (vs. percent).

§user_id: u32

Internal identifier of user that placed the order.

§placement_commission: Number

Commission for placing the order via the Trade Desk over the phone.

§strategy_type: String

Multi-leg strategy to which the order belongs.

§trigger_stop_price: Option<Number>

Stop price at which order was triggered.

§order_group_id: u32

Internal identifier of the order group.

§order_class: Option<String>

Bracket Order class. Primary, Profit or Loss.

Trait Implementations§

Source§

impl Clone for AccountOrder

Source§

fn clone(&self) -> AccountOrder

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AccountOrder

Source§

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

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

impl<'de> Deserialize<'de> for AccountOrder

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 PartialEq for AccountOrder

Source§

fn eq(&self, other: &AccountOrder) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for AccountOrder

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
Source§

impl StructuralPartialEq for AccountOrder

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,