Struct tastyworks::api::transactions::TradeItem[][src]

pub struct TradeItem {
    pub id: u32,
    pub symbol: String,
    pub instrument_type: String,
    pub transaction_type: String,
    pub executed_at: DateTime<FixedOffset>,
    pub action: TradeAction,
    pub underlying_symbol: String,
    pub quantity: Decimal,
    pub ext_global_order_number: u32,
    // some fields omitted
}

Fields

id: u32symbol: Stringinstrument_type: Stringtransaction_type: Stringexecuted_at: DateTime<FixedOffset>action: TradeActionunderlying_symbol: Stringquantity: Decimalext_global_order_number: u32

Implementations

impl TradeItem[src]

pub fn value(&self) -> Rational64[src]

pub fn commission(&self) -> Rational64[src]

pub fn fees(&self) -> Rational64[src]

pub fn expiration_date(&self) -> ExpirationDate[src]

pub fn underlying_symbol(&self) -> &str[src]

pub fn option_type(&self) -> OptionType[src]

pub fn strike_price(&self) -> Rational64[src]

Trait Implementations

impl Debug for TradeItem[src]

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

impl Eq for TradeItem[src]

impl PartialEq<TradeItem> for TradeItem[src]

impl Serialize for TradeItem[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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> Same<T> for T

type Output = T

Should always be Self

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

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>,