[−][src]Struct questrade_rs::AccountPosition
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]
pub fn clone(&self) -> AccountPosition
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AccountPosition
[src]
impl<'de> Deserialize<'de> for AccountPosition
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<AccountPosition> for AccountPosition
[src]
pub fn eq(&self, other: &AccountPosition) -> bool
[src]
pub fn ne(&self, other: &AccountPosition) -> bool
[src]
impl Serialize for AccountPosition
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for AccountPosition
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccountPosition
impl Send for AccountPosition
impl Sync for AccountPosition
impl Unpin for AccountPosition
impl UnwindSafe for AccountPosition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,