[][src]Struct options_common::OptionPosition

pub struct OptionPosition {
    pub symbol: String,
    pub underlying_symbol: String,
    pub option_type: OptionType,
    pub strike_price: Rational64,
    pub expiration_date: ExpirationDate,
    pub is_long: bool,
    pub unit_cost: Option<Rational64>,
    pub unit_net_liq: Option<Rational64>,
    pub delta: Option<NotNan<f64>>,
    pub quantity: i64,
}

Fields

symbol: Stringunderlying_symbol: Stringoption_type: OptionTypestrike_price: Rational64expiration_date: ExpirationDateis_long: boolunit_cost: Option<Rational64>unit_net_liq: Option<Rational64>delta: Option<NotNan<f64>>quantity: i64

Implementations

impl OptionPosition[src]

pub fn description(&self) -> String[src]

pub fn signed_quantity(&self) -> i64[src]

Trait Implementations

impl Clone for OptionPosition[src]

impl Debug for OptionPosition[src]

impl Eq for OptionPosition[src]

impl PartialEq<OptionPosition> for OptionPosition[src]

impl StructuralEq for OptionPosition[src]

impl StructuralPartialEq for OptionPosition[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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,