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 more