[][src]Struct questrade_rs::AccountOrder

pub struct AccountOrder {
    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: OrderTimeInForcegood_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: Stringsecondary_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

impl Clone for AccountOrder[src]

impl Debug for AccountOrder[src]

impl<'de> Deserialize<'de> for AccountOrder[src]

impl PartialEq<AccountOrder> for AccountOrder[src]

impl Serialize for AccountOrder[src]

impl StructuralPartialEq for AccountOrder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.