[][src]Struct questrade_rs::AccountPosition

pub struct AccountPosition {
    pub symbol: String,
    pub symbol_id: u32,
    pub open_quantity: Number,
    pub closed_quantity: Number,
    pub current_market_value: Number,
    pub current_price: Number,
    pub day_profit_and_loss: Number,
    pub average_entry_price: Number,
    pub closed_profit_and_loss: Number,
    pub open_profit_and_loss: Number,
    pub total_cost: Number,
    pub is_real_time: bool,
    pub is_under_reorg: bool,
}

Account Position.

Fields

symbol: String

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

symbol_id: u32

Internal symbol identifier.

open_quantity: Number

Position quantity remaining open.

closed_quantity: Number

Portion of the position that was closed today.

current_market_value: Number

Market value of the position (quantity x price).

current_price: Number

Current price of the position symbol.

day_profit_and_loss: Number

Current price of the position symbol.

average_entry_price: Number

Average price paid for all executions constituting the position.

closed_profit_and_loss: Number

Realized profit/loss on this position.

open_profit_and_loss: Number

Unrealized profit/loss on this position.

total_cost: Number

Total cost of the position.

is_real_time: bool

Designates whether real-time quote was used to compute PnL.

is_under_reorg: bool

Designates whether a symbol is currently undergoing a reorg.

Trait Implementations

impl Clone for AccountPosition[src]

impl Debug for AccountPosition[src]

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

impl PartialEq<AccountPosition> for AccountPosition[src]

impl Serialize for AccountPosition[src]

impl StructuralPartialEq for AccountPosition[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.