pub struct OptionResultInfo {Show 17 fields
pub ret: Option<i32>,
pub option_string_code: Option<String>,
pub option_name: Option<String>,
pub option_id: Option<u64>,
pub underlying_stock_id: Option<u64>,
pub strike_date: Option<u32>,
pub strike_price: Option<u64>,
pub option_type: Option<u32>,
pub suspend_flag: Option<u32>,
pub delisting_flag: Option<u32>,
pub market_code: Option<u32>,
pub hp_contract_share_size: Option<u64>,
pub hp_multiplier: Option<u64>,
pub expiration: Option<u32>,
pub settlement_mode: Option<i32>,
pub standard_type: Option<i32>,
pub index_option_type: Option<i32>,
}Expand description
Rust 只解析 OptionResultInfo 子集。stock/future/crypto 字段略过。
Fields§
§ret: Option<i32>0=success, 其他参考 RetCode
option_string_code: Option<String>期权 futu_symbol(如 NVDA261219C150000)
option_name: Option<String>中文名
option_id: Option<u64>期权 ID(stock_id for option)
underlying_stock_id: Option<u64>标的正股 stock_id
strike_date: Option<u32>行权时间戳(秒)
strike_price: Option<u64>行权价 × 10^9
option_type: Option<u32>1=Call / 2=Put
suspend_flag: Option<u32>codex 14th-round Finding 3 (P2, 2026-04-28 02:09): C++ OptionResultInfo 字段 9/41/46/50 backend 仍下发, 之前 daemon 标“废弃“漏读, 导致 FTAPI OptionStaticExData.suspend / optionStandardType / optionSettlementMode / indexOptionType 全填默认值. AI agent 真金白银场景: 无 suspend = 误下停牌 单, 无 standard_type = 错把 mini contract 当 standard, 等. C++ ConvertToOptionInfo (NNBiz_Qot_StockInfoReq.cpp) + GetStockStaticInfo (APIServer_Inner_API.cpp) 都用这些字段填.
1=停牌 0=正常 (C++ 标 deprecated 但 backend 仍下发)
delisting_flag: Option<u32>field 10 (hp_contract_share_size_disable): 废弃,用 19
非 0 表示退市
market_code: Option<u32>field 12 (hp_multiplier_disable): 废弃,用 20 field 13-16: spread_table_code / 名字三版本
futu 内部 market_code
合约股数 × 10^9(常规 100 × 10^9)
hp_multiplier: Option<u64>乘数 × 10^9
expiration: Option<u32>ExpirationType
settlement_mode: Option<i32>结算方式: 0=Unknown 1=AM 2=PM (EnumSettlementModeType)
standard_type: Option<i32>标准期权类型: 0=Undefined 1=Standard 2=NonStandard (STANDARD_TYPE)
index_option_type: Option<i32>指数期权: 0=非指数, 1=e_HENGZHI, 2=e_GUOZHI, 3=e_HENGZHI_MIN, 4=e_GUOZHI_MIN, …
Implementations§
Source§impl OptionResultInfo
impl OptionResultInfo
Sourcepub fn option_string_code(&self) -> &str
pub fn option_string_code(&self) -> &str
Returns the value of option_string_code, or the default value if option_string_code is unset.
Sourcepub fn option_name(&self) -> &str
pub fn option_name(&self) -> &str
Returns the value of option_name, or the default value if option_name is unset.
Sourcepub fn option_id(&self) -> u64
pub fn option_id(&self) -> u64
Returns the value of option_id, or the default value if option_id is unset.
Sourcepub fn underlying_stock_id(&self) -> u64
pub fn underlying_stock_id(&self) -> u64
Returns the value of underlying_stock_id, or the default value if underlying_stock_id is unset.
Sourcepub fn strike_date(&self) -> u32
pub fn strike_date(&self) -> u32
Returns the value of strike_date, or the default value if strike_date is unset.
Sourcepub fn strike_price(&self) -> u64
pub fn strike_price(&self) -> u64
Returns the value of strike_price, or the default value if strike_price is unset.
Sourcepub fn option_type(&self) -> u32
pub fn option_type(&self) -> u32
Returns the value of option_type, or the default value if option_type is unset.
Sourcepub fn suspend_flag(&self) -> u32
pub fn suspend_flag(&self) -> u32
Returns the value of suspend_flag, or the default value if suspend_flag is unset.
Sourcepub fn delisting_flag(&self) -> u32
pub fn delisting_flag(&self) -> u32
Returns the value of delisting_flag, or the default value if delisting_flag is unset.
Sourcepub fn market_code(&self) -> u32
pub fn market_code(&self) -> u32
Returns the value of market_code, or the default value if market_code is unset.
Returns the value of hp_contract_share_size, or the default value if hp_contract_share_size is unset.
Sourcepub fn hp_multiplier(&self) -> u64
pub fn hp_multiplier(&self) -> u64
Returns the value of hp_multiplier, or the default value if hp_multiplier is unset.
Sourcepub fn expiration(&self) -> u32
pub fn expiration(&self) -> u32
Returns the value of expiration, or the default value if expiration is unset.
Sourcepub fn settlement_mode(&self) -> i32
pub fn settlement_mode(&self) -> i32
Returns the value of settlement_mode, or the default value if settlement_mode is unset.
Sourcepub fn standard_type(&self) -> i32
pub fn standard_type(&self) -> i32
Returns the value of standard_type, or the default value if standard_type is unset.
Sourcepub fn index_option_type(&self) -> i32
pub fn index_option_type(&self) -> i32
Returns the value of index_option_type, or the default value if index_option_type is unset.
Trait Implementations§
Source§impl Clone for OptionResultInfo
impl Clone for OptionResultInfo
Source§fn clone(&self) -> OptionResultInfo
fn clone(&self) -> OptionResultInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptionResultInfo
impl Debug for OptionResultInfo
Source§impl Default for OptionResultInfo
impl Default for OptionResultInfo
Source§impl Hash for OptionResultInfo
impl Hash for OptionResultInfo
Source§impl Message for OptionResultInfo
impl Message for OptionResultInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for OptionResultInfo
impl PartialEq for OptionResultInfo
impl Eq for OptionResultInfo
impl StructuralPartialEq for OptionResultInfo
Auto Trait Implementations§
impl Freeze for OptionResultInfo
impl RefUnwindSafe for OptionResultInfo
impl Send for OptionResultInfo
impl Sync for OptionResultInfo
impl Unpin for OptionResultInfo
impl UnsafeUnpin for OptionResultInfo
impl UnwindSafe for OptionResultInfo
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.