Struct tastyworks::csv::Transaction[][src]

pub struct Transaction {
    pub date: DateTime<FixedOffset>,
    pub trade_type: String,
    pub action: Option<TradeAction>,
    pub symbol: Option<String>,
    pub instrument_type: Option<String>,
    pub description: String,
    pub value: Decimal,
    pub quantity: Decimal,
    pub average_price: Option<Decimal>,
    pub commissions: Option<Decimal>,
    pub fees: Decimal,
    pub multiplier: Option<i32>,
    pub expiration_date: Option<TransactionExpiration>,
    pub strike_price: Option<Decimal>,
    pub call_or_put: Option<OptionTypeUpperCase>,
}

Fields

date: DateTime<FixedOffset>trade_type: Stringaction: Option<TradeAction>symbol: Option<String>instrument_type: Option<String>description: Stringvalue: Decimalquantity: Decimalaverage_price: Option<Decimal>commissions: Option<Decimal>fees: Decimalmultiplier: Option<i32>expiration_date: Option<TransactionExpiration>strike_price: Option<Decimal>call_or_put: Option<OptionTypeUpperCase>

Implementations

impl Transaction[src]

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

Trait Implementations

impl Debug for Transaction[src]

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

impl From<Transaction> for Item[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, 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>,