pub struct UnderlyingRankItem {Show 15 fields
pub owner: Security,
pub name: Option<String>,
pub total_volume: Option<i64>,
pub total_open_interest: Option<i64>,
pub volume_ratio: Option<f64>,
pub open_interest_ratio: Option<f64>,
pub iv: Option<f64>,
pub iv_rank: Option<f64>,
pub iv_percentile: Option<f64>,
pub price: Option<f64>,
pub change_rate: Option<f64>,
pub iv_change: Option<f64>,
pub hv: Option<f64>,
pub hv_change: Option<f64>,
pub market_cap: Option<f64>,
}Expand description
标的排行项
Fields§
§owner: Security期权标的股
name: Option<String>标的名称
total_volume: Option<i64>期权总成交量
total_open_interest: Option<i64>期权总持仓量
volume_ratio: Option<f64>Put/Call成交量比值(该字段为百分比字段,默认不展示%,如20实际对应20%)
open_interest_ratio: Option<f64>Put/Call持仓量比值(该字段为百分比字段,默认不展示%,如20实际对应20%)
iv: Option<f64>隐含波动率(该字段为百分比字段,默认不展示%,如20实际对应20%)
iv_rank: Option<f64>IV排名百分位(该字段为百分比字段,默认不展示%,如20实际对应20%)
iv_percentile: Option<f64>IV百分位(该字段为百分比字段,默认不展示%,如20实际对应20%)
price: Option<f64>标的最新价
change_rate: Option<f64>标的涨跌幅(该字段为百分比字段,默认不展示%,如20实际对应20%)
iv_change: Option<f64>IV变化率(该字段为百分比字段,默认不展示%,如20实际对应20%)
hv: Option<f64>历史波动率(该字段为百分比字段,默认不展示%,如20实际对应20%)
hv_change: Option<f64>HV变化率(该字段为百分比字段,默认不展示%,如20实际对应20%)
market_cap: Option<f64>市值
Implementations§
Source§impl UnderlyingRankItem
impl UnderlyingRankItem
Sourcepub fn total_volume(&self) -> i64
pub fn total_volume(&self) -> i64
Returns the value of total_volume, or the default value if total_volume is unset.
Sourcepub fn total_open_interest(&self) -> i64
pub fn total_open_interest(&self) -> i64
Returns the value of total_open_interest, or the default value if total_open_interest is unset.
Sourcepub fn volume_ratio(&self) -> f64
pub fn volume_ratio(&self) -> f64
Returns the value of volume_ratio, or the default value if volume_ratio is unset.
Sourcepub fn open_interest_ratio(&self) -> f64
pub fn open_interest_ratio(&self) -> f64
Returns the value of open_interest_ratio, or the default value if open_interest_ratio is unset.
Sourcepub fn iv_rank(&self) -> f64
pub fn iv_rank(&self) -> f64
Returns the value of iv_rank, or the default value if iv_rank is unset.
Sourcepub fn iv_percentile(&self) -> f64
pub fn iv_percentile(&self) -> f64
Returns the value of iv_percentile, or the default value if iv_percentile 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 iv_change(&self) -> f64
pub fn iv_change(&self) -> f64
Returns the value of iv_change, or the default value if iv_change is unset.
Sourcepub fn hv_change(&self) -> f64
pub fn hv_change(&self) -> f64
Returns the value of hv_change, or the default value if hv_change is unset.
Sourcepub fn market_cap(&self) -> f64
pub fn market_cap(&self) -> f64
Returns the value of market_cap, or the default value if market_cap is unset.
Trait Implementations§
Source§impl Clone for UnderlyingRankItem
impl Clone for UnderlyingRankItem
Source§fn clone(&self) -> UnderlyingRankItem
fn clone(&self) -> UnderlyingRankItem
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 UnderlyingRankItem
impl Debug for UnderlyingRankItem
Source§impl Default for UnderlyingRankItem
impl Default for UnderlyingRankItem
Source§impl<'de> Deserialize<'de> for UnderlyingRankItemwhere
UnderlyingRankItem: Default,
impl<'de> Deserialize<'de> for UnderlyingRankItemwhere
UnderlyingRankItem: 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 UnderlyingRankItem
impl Message for UnderlyingRankItem
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 UnderlyingRankItem
impl PartialEq for UnderlyingRankItem
Source§fn eq(&self, other: &UnderlyingRankItem) -> bool
fn eq(&self, other: &UnderlyingRankItem) -> bool
self and other values to be equal, and is used by ==.