OptionData

Struct OptionData 

Source
pub struct OptionData {
Show 49 fields pub put_call: String, pub symbol: String, pub description: String, pub exchange_name: String, pub bid: f64, pub ask: f64, pub last: f64, pub mark: f64, pub bid_size: i64, pub ask_size: i64, pub bid_ask_size: String, pub last_size: i64, pub high_price: f64, pub low_price: f64, pub open_price: f64, pub close_price: f64, pub total_volume: i64, pub trade_date: Option<String>, pub trade_time_in_long: i64, pub quote_time_in_long: i64, pub net_change: f64, pub volatility: Option<f64>, pub delta: Option<f64>, pub gamma: Option<f64>, pub theta: Option<f64>, pub vega: f64, pub rho: Option<f64>, pub open_interest: i64, pub time_value: f64, pub theoretical_option_value: Option<f64>, pub theoretical_volatility: f64, pub option_deliverables_list: Option<OptionDeliverables>, pub strike_price: f64, pub expiration_date: i64, pub days_to_expiration: i64, pub expiration_type: String, pub last_trading_day: i64, pub multiplier: f64, pub settlement_type: String, pub deliverable_note: String, pub is_index_option: Option<String>, pub percent_change: f64, pub mark_change: f64, pub mark_percent_change: f64, pub intrinsic_value: f64, pub penny_pilot: bool, pub non_standard: bool, pub in_the_money: bool, pub mini: bool,
}

Fields§

§put_call: String§symbol: String§description: String§exchange_name: String§bid: f64§ask: f64§last: f64§mark: f64§bid_size: i64§ask_size: i64§bid_ask_size: String§last_size: i64§high_price: f64§low_price: f64§open_price: f64§close_price: f64§total_volume: i64§trade_date: Option<String>§trade_time_in_long: i64§quote_time_in_long: i64§net_change: f64§volatility: Option<f64>§delta: Option<f64>§gamma: Option<f64>§theta: Option<f64>§vega: f64§rho: Option<f64>§open_interest: i64§time_value: f64§theoretical_option_value: Option<f64>§theoretical_volatility: f64§option_deliverables_list: Option<OptionDeliverables>§strike_price: f64§expiration_date: i64§days_to_expiration: i64§expiration_type: String§last_trading_day: i64§multiplier: f64§settlement_type: String§deliverable_note: String§is_index_option: Option<String>§percent_change: f64§mark_change: f64§mark_percent_change: f64§intrinsic_value: f64§penny_pilot: bool§non_standard: bool§in_the_money: bool§mini: bool

Trait Implementations§

Source§

impl Clone for OptionData

Source§

fn clone(&self) -> OptionData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OptionData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OptionData

Source§

fn default() -> OptionData

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for OptionData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OptionData

Source§

fn eq(&self, other: &OptionData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OptionData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OptionData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,