pub struct OptionChainContract {
pub symbol: String,
pub expiry_date: Date,
pub strike_price: Decimal,
pub direction: OptionDirection,
pub option_type: OptionExpiryCycleType,
pub standard_attr: OptionStandardAttr,
pub days_to_expiry: i32,
}Expand description
A single option contract of an option chain
Every contract is an independent entry: calls and puts are not paired, so a strike price that is listed on one side only yields a single entry.
Fields§
§symbol: StringOption contract code, in ticker.region format
expiry_date: DateExpiry date, in US Eastern time
strike_price: DecimalStrike price
direction: OptionDirectionContract direction
option_type: OptionExpiryCycleTypeSpecial expiration cycle of the contract
standard_attr: OptionStandardAttrWhether the contract is a legacy contract left over from a corporate action
days_to_expiry: i32Number of days remaining until the option expires, updated daily at midnight ET
0 for options expiring today, and negative for already-expired
options.
Trait Implementations§
Source§impl Clone for OptionChainContract
impl Clone for OptionChainContract
Source§fn clone(&self) -> OptionChainContract
fn clone(&self) -> OptionChainContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionChainContract
impl Debug for OptionChainContract
Source§impl<'de> Deserialize<'de> for OptionChainContract
impl<'de> Deserialize<'de> for OptionChainContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OptionChainContract
impl RefUnwindSafe for OptionChainContract
impl Send for OptionChainContract
impl Sync for OptionChainContract
impl Unpin for OptionChainContract
impl UnsafeUnpin for OptionChainContract
impl UnwindSafe for OptionChainContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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