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: u32Internal order identifier.
symbol: StringSymbol that follows Questrade symbology (e.g., “TD.TO”).
symbol_id: u32Internal symbol identifier.
total_quantity: NumberTotal quantity of the order.
open_quantity: NumberUnfilled portion of the order quantity.
filled_quantity: NumberFilled portion of the order quantity.
canceled_quantity: NumberUnfilled portion of the order quantity after cancellation.
side: OrderSideClient view of the order side (e.g., “Buy-To-Open”).
order_type: OrderTypeOrder price type (e.g., “Market”).
limit_price: Option<Number>Limit price.
stop_price: Option<Number>Stop price.
is_all_or_none: boolSpecifies all-or-none special instruction.
is_anonymous: boolSpecifies 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: StringIdentifies 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: OrderStateCurrent order state
rejection_reason: Option<String>Human readable order rejection reason message.
chain_id: u32Internal 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: StringOrder route name.
venue_holding_order: Option<String>Venue where non-marketable portion of the order was booked.
commission_charged: NumberTotal commission amount charged for this order.
exchange_order_id: StringIdentifier assigned to this order by exchange where it was routed.
Whether user that placed the order is a significant shareholder.
is_insider: boolWhether user that placed the order is an insider.
is_limit_offset_in_dollars: boolWhether limit offset is specified in dollars (vs. percent).
user_id: u32Internal identifier of user that placed the order.
placement_commission: NumberCommission for placing the order via the Trade Desk over the phone.
strategy_type: StringMulti-leg strategy to which the order belongs.
trigger_stop_price: Option<Number>Stop price at which order was triggered.
order_group_id: u32Internal identifier of the order group.
order_class: Option<String>Bracket Order class. Primary, Profit or Loss.
Trait Implementations§
Source§impl Clone for AccountOrder
impl Clone for AccountOrder
Source§fn clone(&self) -> AccountOrder
fn clone(&self) -> AccountOrder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountOrder
impl Debug for AccountOrder
Source§impl<'de> Deserialize<'de> for AccountOrder
impl<'de> Deserialize<'de> for AccountOrder
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 PartialEq for AccountOrder
impl PartialEq for AccountOrder
Source§impl Serialize for AccountOrder
impl Serialize for AccountOrder
impl StructuralPartialEq for AccountOrder
Auto Trait Implementations§
impl Freeze for AccountOrder
impl RefUnwindSafe for AccountOrder
impl Send for AccountOrder
impl Sync for AccountOrder
impl Unpin for AccountOrder
impl UnwindSafe for AccountOrder
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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