pub struct UnderlyingStatisticInfo {Show 16 fields
pub stock_id: Option<u64>,
pub volume: Option<i64>,
pub open_interest: Option<i64>,
pub iv: Option<i64>,
pub hv: Option<i64>,
pub iv_rank: Option<i64>,
pub iv_percentile: Option<i64>,
pub iv_chg: Option<i64>,
pub iv_chg_ratio: Option<i64>,
pub market_cap: Option<i64>,
pub iv_hv_ratio: Option<i64>,
pub iv_hv_spread: Option<i64>,
pub price: Option<i64>,
pub chg_ratio: Option<i64>,
pub earnings: Option<EarningsInfo>,
pub index_type: Option<i32>,
}Fields§
§stock_id: Option<u64>§volume: Option<i64>期权总成交量,精度1
open_interest: Option<i64>期权总持仓量,精度1
iv: Option<i64>标的IV,空表示不存在,精度10**5 (eg: 1.5%,则返回1500)
hv: Option<i64>标的HV,空表示不存在,精度10**5 (eg: 1.5%,则返回1500) note: HV数据有多个周期类型,这里选用的30天
iv_rank: Option<i64>标的IV Rank,空表示不存在,精度10**5 (eg: 1.5%,则返回1500)
iv_percentile: Option<i64>标的IV Percentile,空表示不存在,精度10**5 (eg: 1.5%,则返回1500)
iv_chg: Option<i64>标的IV变化量,精度10**5 (eg: 1.5%,则返回1500)
iv_chg_ratio: Option<i64>标的IV变化率,精度10**5 (eg: 1.5%,则返回1500)
market_cap: Option<i64>标的市值,精度10**3(eg: 15,则返回15000)
iv_hv_ratio: Option<i64>标的iv/标的hv,精度10**5(eg: iv为30%,hv为15%,则返回200000)
iv_hv_spread: Option<i64>标的iv-标的hv, 精度10**5(eg: iv为30%,hv为15%,则返回15000)
price: Option<i64>标的价格, 精度10**9
chg_ratio: Option<i64>标的涨跌幅,精度为10**5 (eg: 涨幅1.5%,则返回1500)
earnings: Option<EarningsInfo>标的财报相关数据
index_type: Option<i32>指数类型,参考IndexOptionType,与stock_id一起构成唯一键,用于区分大小恒指、大小国指、大小日经
Implementations§
Source§impl UnderlyingStatisticInfo
impl UnderlyingStatisticInfo
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 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 iv_rank(&self) -> i64
pub fn iv_rank(&self) -> i64
Returns the value of iv_rank, or the default value if iv_rank is unset.
Sourcepub fn iv_percentile(&self) -> i64
pub fn iv_percentile(&self) -> i64
Returns the value of iv_percentile, or the default value if iv_percentile is unset.
Sourcepub fn iv_chg(&self) -> i64
pub fn iv_chg(&self) -> i64
Returns the value of iv_chg, or the default value if iv_chg is unset.
Sourcepub fn iv_chg_ratio(&self) -> i64
pub fn iv_chg_ratio(&self) -> i64
Returns the value of iv_chg_ratio, or the default value if iv_chg_ratio is unset.
Sourcepub fn market_cap(&self) -> i64
pub fn market_cap(&self) -> i64
Returns the value of market_cap, or the default value if market_cap is unset.
Sourcepub fn iv_hv_ratio(&self) -> i64
pub fn iv_hv_ratio(&self) -> i64
Returns the value of iv_hv_ratio, or the default value if iv_hv_ratio is unset.
Sourcepub fn iv_hv_spread(&self) -> i64
pub fn iv_hv_spread(&self) -> i64
Returns the value of iv_hv_spread, or the default value if iv_hv_spread is unset.
Sourcepub fn chg_ratio(&self) -> i64
pub fn chg_ratio(&self) -> i64
Returns the value of chg_ratio, or the default value if chg_ratio is unset.
Sourcepub fn index_type(&self) -> i32
pub fn index_type(&self) -> i32
Returns the value of index_type, or the default value if index_type is unset.
Trait Implementations§
Source§impl Clone for UnderlyingStatisticInfo
impl Clone for UnderlyingStatisticInfo
Source§fn clone(&self) -> UnderlyingStatisticInfo
fn clone(&self) -> UnderlyingStatisticInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnderlyingStatisticInfo
impl Debug for UnderlyingStatisticInfo
Source§impl Default for UnderlyingStatisticInfo
impl Default for UnderlyingStatisticInfo
Source§impl Hash for UnderlyingStatisticInfo
impl Hash for UnderlyingStatisticInfo
Source§impl Message for UnderlyingStatisticInfo
impl Message for UnderlyingStatisticInfo
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 UnderlyingStatisticInfo
impl PartialEq for UnderlyingStatisticInfo
impl Copy for UnderlyingStatisticInfo
impl Eq for UnderlyingStatisticInfo
impl StructuralPartialEq for UnderlyingStatisticInfo
Auto Trait Implementations§
impl Freeze for UnderlyingStatisticInfo
impl RefUnwindSafe for UnderlyingStatisticInfo
impl Send for UnderlyingStatisticInfo
impl Sync for UnderlyingStatisticInfo
impl Unpin for UnderlyingStatisticInfo
impl UnsafeUnpin for UnderlyingStatisticInfo
impl UnwindSafe for UnderlyingStatisticInfo
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.