pub struct SellerItem {Show 18 fields
pub option: Security,
pub name: Option<String>,
pub option_type: Option<i32>,
pub strike_price: Option<f64>,
pub strike_time: Option<String>,
pub strike_timestamp: Option<f64>,
pub left_days: Option<i32>,
pub option_price: Option<f64>,
pub stock_price: Option<f64>,
pub premium: Option<f64>,
pub otm_degree: Option<f64>,
pub iv: Option<f64>,
pub interval_return: Option<f64>,
pub annualized_return: Option<f64>,
pub itm_probability: Option<f64>,
pub striked_interval_return: Option<f64>,
pub striked_annualized_return: Option<f64>,
pub owner: Option<Security>,
}Expand description
卖方策略合约项
Fields§
§option: Security期权合约
name: Option<String>期权名称
option_type: Option<i32>Qot_Common.OptionType (CALL/PUT)
strike_price: Option<f64>行权价
strike_time: Option<String>到期日(“yyyy-MM-dd”)
strike_timestamp: Option<f64>到期日时间戳(秒)
left_days: Option<i32>距到期天数
option_price: Option<f64>期权价格
stock_price: Option<f64>标的当前价
权利金(=期权价x合约乘数)
otm_degree: Option<f64>价外程度(%)
iv: Option<f64>隐含波动率(%)
interval_return: Option<f64>区间收益率(%)
annualized_return: Option<f64>年化收益率(%)
itm_probability: Option<f64>行权概率(%)
striked_interval_return: Option<f64>Covered Call 专属
被行权区间收益率(%)
striked_annualized_return: Option<f64>被行权年化收益率(%)
owner: Option<Security>标的信息
标的证券
Implementations§
Source§impl SellerItem
impl SellerItem
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 strike_price(&self) -> f64
pub fn strike_price(&self) -> f64
Returns the value of strike_price, or the default value if strike_price is unset.
Sourcepub fn strike_time(&self) -> &str
pub fn strike_time(&self) -> &str
Returns the value of strike_time, or the default value if strike_time is unset.
Sourcepub fn strike_timestamp(&self) -> f64
pub fn strike_timestamp(&self) -> f64
Returns the value of strike_timestamp, or the default value if strike_timestamp is unset.
Sourcepub fn left_days(&self) -> i32
pub fn left_days(&self) -> i32
Returns the value of left_days, or the default value if left_days 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 stock_price(&self) -> f64
pub fn stock_price(&self) -> f64
Returns the value of stock_price, or the default value if stock_price is unset.
Returns the value of premium, or the default value if premium is unset.
Sourcepub fn otm_degree(&self) -> f64
pub fn otm_degree(&self) -> f64
Returns the value of otm_degree, or the default value if otm_degree is unset.
Sourcepub fn interval_return(&self) -> f64
pub fn interval_return(&self) -> f64
Returns the value of interval_return, or the default value if interval_return is unset.
Sourcepub fn annualized_return(&self) -> f64
pub fn annualized_return(&self) -> f64
Returns the value of annualized_return, or the default value if annualized_return is unset.
Sourcepub fn itm_probability(&self) -> f64
pub fn itm_probability(&self) -> f64
Returns the value of itm_probability, or the default value if itm_probability is unset.
Sourcepub fn striked_interval_return(&self) -> f64
pub fn striked_interval_return(&self) -> f64
Returns the value of striked_interval_return, or the default value if striked_interval_return is unset.
Sourcepub fn striked_annualized_return(&self) -> f64
pub fn striked_annualized_return(&self) -> f64
Returns the value of striked_annualized_return, or the default value if striked_annualized_return is unset.
Trait Implementations§
Source§impl Clone for SellerItem
impl Clone for SellerItem
Source§fn clone(&self) -> SellerItem
fn clone(&self) -> SellerItem
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 SellerItem
impl Debug for SellerItem
Source§impl Default for SellerItem
impl Default for SellerItem
Source§impl<'de> Deserialize<'de> for SellerItemwhere
SellerItem: Default,
impl<'de> Deserialize<'de> for SellerItemwhere
SellerItem: 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 SellerItem
impl Message for SellerItem
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 SellerItem
impl PartialEq for SellerItem
Source§fn eq(&self, other: &SellerItem) -> bool
fn eq(&self, other: &SellerItem) -> bool
self and other values to be equal, and is used by ==.