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,
}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.
Trait Implementations§
Source§impl Clone for OptionContractInfo
impl Clone for OptionContractInfo
Source§fn clone(&self) -> OptionContractInfo
fn clone(&self) -> OptionContractInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptionContractInfo
impl Debug for OptionContractInfo
Source§impl Default for OptionContractInfo
impl Default for OptionContractInfo
Source§fn default() -> OptionContractInfo
fn default() -> OptionContractInfo
Source§impl PartialEq for OptionContractInfo
impl PartialEq for OptionContractInfo
impl Copy for OptionContractInfo
impl Eq for OptionContractInfo
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.