pub struct PriceHistoryOnEarningsDays {Show 17 fields
pub fiscal_year: Option<i32>,
pub financial_type: Option<i32>,
pub period_text: Option<String>,
pub is_current: Option<bool>,
pub pub_trading_day: Option<i64>,
pub pub_trading_day_str: Option<String>,
pub pub_time: Option<i64>,
pub pub_time_str: Option<String>,
pub pub_type: Option<i32>,
pub predict_vola_ratio_newest: Option<f64>,
pub predict_vola_ratio_highest: Option<f64>,
pub predict_vola_val_newest: Option<f64>,
pub predict_vola_val_highest: Option<f64>,
pub option_iv_crush: Option<f64>,
pub option_strike_date_iv_crush: Option<f64>,
pub price_info: Option<PriceInfo>,
pub schedule_info_list: Vec<FinScheduleInfo>,
}Expand description
单期财报周期的历史行情数据,包含财报元信息、预期波动率及财报日当天完整行情
Fields§
§fiscal_year: Option<i32>财务年度,如 2024
financial_type: Option<i32>财报类型,详见 Qot_Common.F10Type 定义
period_text: Option<String>财报周期,如 “2024/Q3”、“2024/FY”
is_current: Option<bool>是否为当前(最新)财报期
pub_trading_day: Option<i64>财报发布对应的交易日时间戳(秒)
pub_trading_day_str: Option<String>财报发布交易日字符串,格式 YYYY-MM-DD,对应市场时区
pub_time: Option<i64>财报实际发布时间戳(秒,含时分秒)
pub_time_str: Option<String>财报发布时间字符串,格式 YYYY-MM-DD HH:MM:SS,对应市场时区
pub_type: Option<i32>财报发布时间类型,详见 Qot_Common.EarningsPubTimeType 定义
predict_vola_ratio_newest: Option<f64>最新预期波动比例(百分号前的值,如 12.34 表示 12.34%)
predict_vola_ratio_highest: Option<f64>最高预期波动比例(百分号前的值,如 12.34 表示 12.34%)
predict_vola_val_newest: Option<f64>最新预期波动金额
predict_vola_val_highest: Option<f64>最高预期波动金额
option_iv_crush: Option<f64>期权隐含波动率压缩值(百分号前的值,如 12.34 表示 12.34%)
option_strike_date_iv_crush: Option<f64>行权日期权隐含波动率压缩值(百分号前的值,如 12.34 表示 12.34%)
price_info: Option<PriceInfo>财报发布日当天的行情数据
schedule_info_list: Vec<FinScheduleInfo>相对财报日各交易日收盘价列表,按偏移量升序排列
Implementations§
Source§impl PriceHistoryOnEarningsDays
impl PriceHistoryOnEarningsDays
Sourcepub fn fiscal_year(&self) -> i32
pub fn fiscal_year(&self) -> i32
Returns the value of fiscal_year, or the default value if fiscal_year is unset.
Sourcepub fn financial_type(&self) -> i32
pub fn financial_type(&self) -> i32
Returns the value of financial_type, or the default value if financial_type is unset.
Sourcepub fn period_text(&self) -> &str
pub fn period_text(&self) -> &str
Returns the value of period_text, or the default value if period_text is unset.
Sourcepub fn is_current(&self) -> bool
pub fn is_current(&self) -> bool
Returns the value of is_current, or the default value if is_current is unset.
Sourcepub fn pub_trading_day(&self) -> i64
pub fn pub_trading_day(&self) -> i64
Returns the value of pub_trading_day, or the default value if pub_trading_day is unset.
Sourcepub fn pub_trading_day_str(&self) -> &str
pub fn pub_trading_day_str(&self) -> &str
Returns the value of pub_trading_day_str, or the default value if pub_trading_day_str is unset.
Sourcepub fn pub_time(&self) -> i64
pub fn pub_time(&self) -> i64
Returns the value of pub_time, or the default value if pub_time is unset.
Sourcepub fn pub_time_str(&self) -> &str
pub fn pub_time_str(&self) -> &str
Returns the value of pub_time_str, or the default value if pub_time_str is unset.
Sourcepub fn pub_type(&self) -> EarningsPubTimeType
pub fn pub_type(&self) -> EarningsPubTimeType
Returns the enum value of pub_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_pub_type(&mut self, value: EarningsPubTimeType)
pub fn set_pub_type(&mut self, value: EarningsPubTimeType)
Sets pub_type to the provided enum value.
Sourcepub fn predict_vola_ratio_newest(&self) -> f64
pub fn predict_vola_ratio_newest(&self) -> f64
Returns the value of predict_vola_ratio_newest, or the default value if predict_vola_ratio_newest is unset.
Sourcepub fn predict_vola_ratio_highest(&self) -> f64
pub fn predict_vola_ratio_highest(&self) -> f64
Returns the value of predict_vola_ratio_highest, or the default value if predict_vola_ratio_highest is unset.
Sourcepub fn predict_vola_val_newest(&self) -> f64
pub fn predict_vola_val_newest(&self) -> f64
Returns the value of predict_vola_val_newest, or the default value if predict_vola_val_newest is unset.
Sourcepub fn predict_vola_val_highest(&self) -> f64
pub fn predict_vola_val_highest(&self) -> f64
Returns the value of predict_vola_val_highest, or the default value if predict_vola_val_highest is unset.
Sourcepub fn option_iv_crush(&self) -> f64
pub fn option_iv_crush(&self) -> f64
Returns the value of option_iv_crush, or the default value if option_iv_crush is unset.
Sourcepub fn option_strike_date_iv_crush(&self) -> f64
pub fn option_strike_date_iv_crush(&self) -> f64
Returns the value of option_strike_date_iv_crush, or the default value if option_strike_date_iv_crush is unset.
Trait Implementations§
Source§impl Clone for PriceHistoryOnEarningsDays
impl Clone for PriceHistoryOnEarningsDays
Source§fn clone(&self) -> PriceHistoryOnEarningsDays
fn clone(&self) -> PriceHistoryOnEarningsDays
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PriceHistoryOnEarningsDays
impl Debug for PriceHistoryOnEarningsDays
Source§impl Default for PriceHistoryOnEarningsDays
impl Default for PriceHistoryOnEarningsDays
Source§impl<'de> Deserialize<'de> for PriceHistoryOnEarningsDayswhere
PriceHistoryOnEarningsDays: Default,
impl<'de> Deserialize<'de> for PriceHistoryOnEarningsDayswhere
PriceHistoryOnEarningsDays: 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 PriceHistoryOnEarningsDays
impl Message for PriceHistoryOnEarningsDays
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.