pub struct UnderlyingData {
pub owner: Security,
pub code: Option<String>,
pub name: Option<String>,
pub call_volume: Option<i64>,
pub put_volume: Option<i64>,
pub call_open_interest: Option<i64>,
pub put_open_interest: Option<i64>,
pub iv: Option<f64>,
pub iv_rank: Option<f64>,
pub iv_percentile: Option<f64>,
pub hv_list: Vec<HvItem>,
pub pre_iv: Option<f64>,
}Expand description
标的最新数据
Fields§
§owner: Security期权标的股
code: Option<String>股票代码
name: Option<String>标的名称
call_volume: Option<i64>看涨期权成交量
put_volume: Option<i64>看跌期权成交量
call_open_interest: Option<i64>看涨期权持仓量(T-1延迟)
put_open_interest: Option<i64>看跌期权持仓量(T-1延迟)
iv: Option<f64>隐含波动率(该字段为百分比字段,默认不展示%,如20实际对应20%)
iv_rank: Option<f64>IV排名百分位(该字段为百分比字段,默认不展示%,如20实际对应20%)
iv_percentile: Option<f64>IV百分位(该字段为百分比字段,默认不展示%,如20实际对应20%)
hv_list: Vec<HvItem>历史波动率列表(多个时间范围)
pre_iv: Option<f64>前一交易日IV(该字段为百分比字段,默认不展示%,如20实际对应20%)
Implementations§
Source§impl UnderlyingData
impl UnderlyingData
Sourcepub fn call_volume(&self) -> i64
pub fn call_volume(&self) -> i64
Returns the value of call_volume, or the default value if call_volume is unset.
Sourcepub fn put_volume(&self) -> i64
pub fn put_volume(&self) -> i64
Returns the value of put_volume, or the default value if put_volume is unset.
Sourcepub fn call_open_interest(&self) -> i64
pub fn call_open_interest(&self) -> i64
Returns the value of call_open_interest, or the default value if call_open_interest is unset.
Sourcepub fn put_open_interest(&self) -> i64
pub fn put_open_interest(&self) -> i64
Returns the value of put_open_interest, or the default value if put_open_interest 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.
Trait Implementations§
Source§impl Clone for UnderlyingData
impl Clone for UnderlyingData
Source§fn clone(&self) -> UnderlyingData
fn clone(&self) -> UnderlyingData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnderlyingData
impl Debug for UnderlyingData
Source§impl Default for UnderlyingData
impl Default for UnderlyingData
Source§impl<'de> Deserialize<'de> for UnderlyingDatawhere
UnderlyingData: Default,
impl<'de> Deserialize<'de> for UnderlyingDatawhere
UnderlyingData: 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for UnderlyingData
impl Message for UnderlyingData
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 UnderlyingData
impl PartialEq for UnderlyingData
Source§fn eq(&self, other: &UnderlyingData) -> bool
fn eq(&self, other: &UnderlyingData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnderlyingData
impl Serialize for UnderlyingData
impl StructuralPartialEq for UnderlyingData
Auto Trait Implementations§
impl Freeze for UnderlyingData
impl RefUnwindSafe for UnderlyingData
impl Send for UnderlyingData
impl Sync for UnderlyingData
impl Unpin for UnderlyingData
impl UnsafeUnpin for UnderlyingData
impl UnwindSafe for UnderlyingData
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