pub struct GetComboOptionListReq {
pub strategy: Option<i32>,
pub stock_id: Option<u64>,
pub spread: Option<i64>,
pub strike_date: Option<u64>,
pub expiration: Option<u32>,
pub index_option_type: Option<u32>,
pub standard_type: Option<u32>,
pub strike_date_item: Vec<NewStrikeDateItem>,
pub filetr_data: Option<FilterData>,
}Expand description
CMD 6736: 查询组合期权列表。
Rust 用法与 C++ 同形:
- GetOptionChain: strategy=1 (SingleOption), 用于单腿 option_id 列表 + Greek filter。
- GetOptionStrategy: strategy=FTAPI option_strategy, 用于组合策略候选。
Fields§
§strategy: Option<i32>OptionStrategyType
stock_id: Option<u64>标的正股 stock_id
spread: Option<i64>10^9; GetOptionChain 单腿路径不填 / 填 0
strike_date: Option<u64>行权日(timestamp,和 CMD 6311 返回对齐)
expiration: Option<u32>到期类型 ExpirationType
index_option_type: Option<u32>§standard_type: Option<u32>§strike_date_item: Vec<NewStrikeDateItem>§filetr_data: Option<FilterData>注意:字段名是 filetr_data (typo),对齐 C++ 源
Implementations§
Source§impl GetComboOptionListReq
impl GetComboOptionListReq
Sourcepub fn strategy(&self) -> i32
pub fn strategy(&self) -> i32
Returns the value of strategy, or the default value if strategy is unset.
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id is unset.
Sourcepub fn spread(&self) -> i64
pub fn spread(&self) -> i64
Returns the value of spread, or the default value if spread is unset.
Sourcepub fn strike_date(&self) -> u64
pub fn strike_date(&self) -> u64
Returns the value of strike_date, or the default value if strike_date 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 index_option_type(&self) -> u32
pub fn index_option_type(&self) -> u32
Returns the value of index_option_type, or the default value if index_option_type is unset.
Sourcepub fn standard_type(&self) -> u32
pub fn standard_type(&self) -> u32
Returns the value of standard_type, or the default value if standard_type is unset.
Trait Implementations§
Source§impl Clone for GetComboOptionListReq
impl Clone for GetComboOptionListReq
Source§fn clone(&self) -> GetComboOptionListReq
fn clone(&self) -> GetComboOptionListReq
Returns a duplicate of the value. Read more
1.0.0 · 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 GetComboOptionListReq
impl Debug for GetComboOptionListReq
Source§impl Default for GetComboOptionListReq
impl Default for GetComboOptionListReq
Source§impl Message for GetComboOptionListReq
impl Message for GetComboOptionListReq
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for GetComboOptionListReq
impl PartialEq for GetComboOptionListReq
impl StructuralPartialEq for GetComboOptionListReq
Auto Trait Implementations§
impl Freeze for GetComboOptionListReq
impl RefUnwindSafe for GetComboOptionListReq
impl Send for GetComboOptionListReq
impl Sync for GetComboOptionListReq
impl Unpin for GetComboOptionListReq
impl UnsafeUnpin for GetComboOptionListReq
impl UnwindSafe for GetComboOptionListReq
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