pub struct DailyStatistic {
pub time: String,
pub timestamp: Option<f64>,
pub option_volume: Option<i64>,
pub call_volume: i64,
pub put_volume: i64,
pub put_call_volume_ratio: Option<f64>,
pub option_open_interest: Option<i64>,
pub call_open_interest: i64,
pub put_open_interest: i64,
pub put_call_open_interest_ratio: Option<f64>,
pub underlying_price: Option<f64>,
}Expand description
每日统计数据
Fields§
§time: String交易日时间字符串
timestamp: Option<f64>交易日时间戳
option_volume: Option<i64>期权总成交量(callVolume + putVolume)
call_volume: i64看涨期权成交量
put_volume: i64看跌期权成交量
put_call_volume_ratio: Option<f64>Put/Call成交量比(putVolume / callVolume)
option_open_interest: Option<i64>期权总持仓量(callOpenInterest + putOpenInterest)
call_open_interest: i64看涨期权持仓量(T-1延迟)
put_open_interest: i64看跌期权持仓量(T-1延迟)
put_call_open_interest_ratio: Option<f64>Put/Call持仓量比(putOpenInterest / callOpenInterest)
underlying_price: Option<f64>标的价格
Implementations§
Source§impl DailyStatistic
impl DailyStatistic
Sourcepub fn timestamp(&self) -> f64
pub fn timestamp(&self) -> f64
Returns the value of timestamp, or the default value if timestamp is unset.
Sourcepub fn option_volume(&self) -> i64
pub fn option_volume(&self) -> i64
Returns the value of option_volume, or the default value if option_volume is unset.
Sourcepub fn put_call_volume_ratio(&self) -> f64
pub fn put_call_volume_ratio(&self) -> f64
Returns the value of put_call_volume_ratio, or the default value if put_call_volume_ratio is unset.
Sourcepub fn option_open_interest(&self) -> i64
pub fn option_open_interest(&self) -> i64
Returns the value of option_open_interest, or the default value if option_open_interest is unset.
Sourcepub fn put_call_open_interest_ratio(&self) -> f64
pub fn put_call_open_interest_ratio(&self) -> f64
Returns the value of put_call_open_interest_ratio, or the default value if put_call_open_interest_ratio is unset.
Sourcepub fn underlying_price(&self) -> f64
pub fn underlying_price(&self) -> f64
Returns the value of underlying_price, or the default value if underlying_price is unset.
Trait Implementations§
Source§impl Clone for DailyStatistic
impl Clone for DailyStatistic
Source§fn clone(&self) -> DailyStatistic
fn clone(&self) -> DailyStatistic
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 DailyStatistic
impl Debug for DailyStatistic
Source§impl Default for DailyStatistic
impl Default for DailyStatistic
Source§impl<'de> Deserialize<'de> for DailyStatisticwhere
DailyStatistic: Default,
impl<'de> Deserialize<'de> for DailyStatisticwhere
DailyStatistic: 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 DailyStatistic
impl Message for DailyStatistic
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 DailyStatistic
impl PartialEq for DailyStatistic
Source§fn eq(&self, other: &DailyStatistic) -> bool
fn eq(&self, other: &DailyStatistic) -> bool
self and other values to be equal, and is used by ==.