pub struct ZeroDteContractItem {Show 17 fields
pub option: Security,
pub name: Option<String>,
pub option_type: Option<i32>,
pub option_price: Option<f64>,
pub change_rate: Option<f64>,
pub volume: Option<i64>,
pub open_interest: Option<i64>,
pub iv: Option<f64>,
pub delta: Option<f64>,
pub gamma: Option<f64>,
pub vega: Option<f64>,
pub theta: Option<f64>,
pub rho: Option<f64>,
pub buy_break_even_point: Option<f64>,
pub buy_to_bep: Option<f64>,
pub buy_profit_probability: Option<f64>,
pub sell_profit_probability: Option<f64>,
}Expand description
合约项
Fields§
§option: Security§name: Option<String>§option_type: Option<i32>Qot_Common.OptionType
option_price: Option<f64>§change_rate: Option<f64>涨跌幅(该字段为百分比字段,默认不展示%,如20实际对应20%)
volume: Option<i64>§open_interest: Option<i64>§iv: Option<f64>(%)
delta: Option<f64>§gamma: Option<f64>§vega: Option<f64>§theta: Option<f64>§rho: Option<f64>§buy_break_even_point: Option<f64>价格
buy_to_bep: Option<f64>(%)
buy_profit_probability: Option<f64>(%)
sell_profit_probability: Option<f64>(%)
Implementations§
Source§impl ZeroDteContractItem
impl ZeroDteContractItem
Sourcepub fn option_type(&self) -> i32
pub fn option_type(&self) -> i32
Returns the value of option_type, or the default value if option_type is unset.
Sourcepub fn option_price(&self) -> f64
pub fn option_price(&self) -> f64
Returns the value of option_price, or the default value if option_price is unset.
Sourcepub fn change_rate(&self) -> f64
pub fn change_rate(&self) -> f64
Returns the value of change_rate, or the default value if change_rate is unset.
Sourcepub fn volume(&self) -> i64
pub fn volume(&self) -> i64
Returns the value of volume, or the default value if volume is unset.
Sourcepub fn open_interest(&self) -> i64
pub fn open_interest(&self) -> i64
Returns the value of open_interest, or the default value if open_interest is unset.
Sourcepub fn buy_break_even_point(&self) -> f64
pub fn buy_break_even_point(&self) -> f64
Returns the value of buy_break_even_point, or the default value if buy_break_even_point is unset.
Sourcepub fn buy_to_bep(&self) -> f64
pub fn buy_to_bep(&self) -> f64
Returns the value of buy_to_bep, or the default value if buy_to_bep is unset.
Sourcepub fn buy_profit_probability(&self) -> f64
pub fn buy_profit_probability(&self) -> f64
Returns the value of buy_profit_probability, or the default value if buy_profit_probability is unset.
Sourcepub fn sell_profit_probability(&self) -> f64
pub fn sell_profit_probability(&self) -> f64
Returns the value of sell_profit_probability, or the default value if sell_profit_probability is unset.
Trait Implementations§
Source§impl Clone for ZeroDteContractItem
impl Clone for ZeroDteContractItem
Source§fn clone(&self) -> ZeroDteContractItem
fn clone(&self) -> ZeroDteContractItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ZeroDteContractItem
impl Debug for ZeroDteContractItem
Source§impl Default for ZeroDteContractItem
impl Default for ZeroDteContractItem
Source§impl<'de> Deserialize<'de> for ZeroDteContractItemwhere
ZeroDteContractItem: Default,
impl<'de> Deserialize<'de> for ZeroDteContractItemwhere
ZeroDteContractItem: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ZeroDteContractItem
impl Message for ZeroDteContractItem
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 ZeroDteContractItem
impl PartialEq for ZeroDteContractItem
Source§fn eq(&self, other: &ZeroDteContractItem) -> bool
fn eq(&self, other: &ZeroDteContractItem) -> bool
self and other values to be equal, and is used by ==.