pub struct OptionContractInfo {
pub underlying_stock_id: u64,
pub strike_date: u64,
pub real_expiration_time: u64,
pub strike_price: u64,
pub option_type: u32,
pub index_option_type: i32,
pub hp_multiplier: u64,
}Expand description
Option contract static metadata from CMD20106 OptionResultInfo.
C++ stores these fields on Ndt_Qot_SecInfo (nSecID_OptionOwner,
nOptionStrikeTime, nOptionStrikePrice, enOptionType) and uses them when
projecting snapshot option extra data. Rust keeps the metadata separate from
CachedSecurityInfo because stock-list sync does not carry the full option
tuple; CMD20106 on-demand refresh is the authoritative source.
Fields§
§underlying_stock_id: u64§strike_date: u64§real_expiration_time: u64C++ Ndt_Qot_SecInfo::nOptionLastTradeTime, sourced from
stock_information.OptionResultInfo.real_expiration_time field 36.
0 means backend did not return it; callers should fall back to
strike_date, matching C++ APIServer_Qot_OptionQuote.cpp.
strike_price: u64§option_type: u32§index_option_type: i32Backend stock_information.OptionResultInfo.index_option_type field 50.
Only HSI/GQI index options use this as a backend query discriminator;
0 means absent or not applicable.
hp_multiplier: u64C++ Ndt_Qot_SecInfo::nHpOptionMultiplier, fixed-point scale 1e9.
Used by public ticker turnover projection for option contracts.
Trait Implementations§
Source§impl Clone for OptionContractInfo
impl Clone for OptionContractInfo
Source§fn clone(&self) -> OptionContractInfo
fn clone(&self) -> OptionContractInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OptionContractInfo
Source§impl Debug for OptionContractInfo
impl Debug for OptionContractInfo
Source§impl Default for OptionContractInfo
impl Default for OptionContractInfo
Source§fn default() -> OptionContractInfo
fn default() -> OptionContractInfo
impl Eq for OptionContractInfo
Source§impl PartialEq for OptionContractInfo
impl PartialEq for OptionContractInfo
Source§fn eq(&self, other: &OptionContractInfo) -> bool
fn eq(&self, other: &OptionContractInfo) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionContractInfo
Auto Trait Implementations§
impl Freeze for OptionContractInfo
impl RefUnwindSafe for OptionContractInfo
impl Send for OptionContractInfo
impl Sync for OptionContractInfo
impl Unpin for OptionContractInfo
impl UnsafeUnpin for OptionContractInfo
impl UnwindSafe for OptionContractInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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>
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>
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