pub struct EventItem {Show 35 fields
pub option: Option<Security>,
pub owner: Option<Security>,
pub symbol: Option<String>,
pub fill_time: Option<String>,
pub fill_timestamp: Option<f64>,
pub ticker_type: Option<i32>,
pub price: Option<f64>,
pub volume: Option<i64>,
pub turnover: Option<f64>,
pub option_type: Option<i32>,
pub strike_price: Option<f64>,
pub strike_time: Option<String>,
pub strike_timestamp: Option<f64>,
pub dte: Option<i32>,
pub underlying_price: Option<f64>,
pub otm: Option<f64>,
pub bid_price: Option<f64>,
pub ask_price: Option<f64>,
pub iv: Option<f64>,
pub total_volume: Option<i64>,
pub total_open_interest: Option<i64>,
pub vo_ratio: Option<f64>,
pub delta: Option<f64>,
pub gamma: Option<f64>,
pub vega: Option<f64>,
pub theta: Option<f64>,
pub rho: Option<f64>,
pub sentiment: Option<i32>,
pub order_type_list: Vec<i32>,
pub strategy_type: Option<i32>,
pub earnings_time: Option<String>,
pub earnings_pub_type: Option<i32>,
pub corporate_action_list: Vec<CorporateAction>,
pub industry_plate_list: Vec<Security>,
pub concept_plate_list: Vec<Security>,
}Expand description
单条异动记录
Fields§
§option: Option<Security>标识
期权合约标识
owner: Option<Security>标的股票标识
symbol: Option<String>标的display code(如TSLA)
fill_time: Option<String>成交信息
成交时间(“yyyy-MM-dd HH:mm:ss”)
fill_timestamp: Option<f64>成交时间(Unix秒,精度到毫秒)
ticker_type: Option<i32>TickerType,成交方向
price: Option<f64>成交价
volume: Option<i64>成交量(张)
turnover: Option<f64>成交额
option_type: Option<i32>期权合约属性
Qot_Common.OptionType,CALL/PUT
strike_price: Option<f64>行权价
strike_time: Option<String>到期日(“yyyy-MM-dd”)
strike_timestamp: Option<f64>到期日(Unix秒)
dte: Option<i32>距到期天数
underlying_price: Option<f64>行情快照(异动发生时刻)
标的价格
otm: Option<f64>价外比率(百分比值,如-17.18表示-17.18%)
bid_price: Option<f64>买一价
ask_price: Option<f64>卖一价
iv: Option<f64>隐含波动率(百分比值)
total_volume: Option<i64>期权当日总成交量
total_open_interest: Option<i64>期权当日总持仓量
vo_ratio: Option<f64>量仓比(百分比值)
delta: Option<f64>希腊值
gamma: Option<f64>§vega: Option<f64>§theta: Option<f64>§rho: Option<f64>§sentiment: Option<i32>市场情绪与订单分类
MarketSentiment
order_type_list: Vec<i32>OrderType列表
strategy_type: Option<i32>TickerStrategy
earnings_time: Option<String>关联信息
财报日期(“yyyy-MM-dd”)
earnings_pub_type: Option<i32>Qot_OptionCommon.EarningsPubType,财报发布类型(盘前/盘后)
corporate_action_list: Vec<CorporateAction>公司行动列表
industry_plate_list: Vec<Security>行业板块列表
concept_plate_list: Vec<Security>概念板块列表
Implementations§
Source§impl EventItem
impl EventItem
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn fill_time(&self) -> &str
pub fn fill_time(&self) -> &str
Returns the value of fill_time, or the default value if fill_time is unset.
Sourcepub fn fill_timestamp(&self) -> f64
pub fn fill_timestamp(&self) -> f64
Returns the value of fill_timestamp, or the default value if fill_timestamp is unset.
Sourcepub fn ticker_type(&self) -> i32
pub fn ticker_type(&self) -> i32
Returns the value of ticker_type, or the default value if ticker_type 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 turnover(&self) -> f64
pub fn turnover(&self) -> f64
Returns the value of turnover, or the default value if turnover is unset.
Sourcepub fn option_type(&self) -> i32
pub fn option_type(&self) -> i32
Returns the value of option_type, or the default value if option_type is unset.
Sourcepub fn strike_price(&self) -> f64
pub fn strike_price(&self) -> f64
Returns the value of strike_price, or the default value if strike_price is unset.
Sourcepub fn strike_time(&self) -> &str
pub fn strike_time(&self) -> &str
Returns the value of strike_time, or the default value if strike_time is unset.
Sourcepub fn strike_timestamp(&self) -> f64
pub fn strike_timestamp(&self) -> f64
Returns the value of strike_timestamp, or the default value if strike_timestamp 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.
Sourcepub fn bid_price(&self) -> f64
pub fn bid_price(&self) -> f64
Returns the value of bid_price, or the default value if bid_price is unset.
Sourcepub fn ask_price(&self) -> f64
pub fn ask_price(&self) -> f64
Returns the value of ask_price, or the default value if ask_price is unset.
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 vo_ratio(&self) -> f64
pub fn vo_ratio(&self) -> f64
Returns the value of vo_ratio, or the default value if vo_ratio is unset.
Sourcepub fn sentiment(&self) -> i32
pub fn sentiment(&self) -> i32
Returns the value of sentiment, or the default value if sentiment is unset.
Sourcepub fn strategy_type(&self) -> i32
pub fn strategy_type(&self) -> i32
Returns the value of strategy_type, or the default value if strategy_type is unset.
Sourcepub fn earnings_time(&self) -> &str
pub fn earnings_time(&self) -> &str
Returns the value of earnings_time, or the default value if earnings_time is unset.
Sourcepub fn earnings_pub_type(&self) -> i32
pub fn earnings_pub_type(&self) -> i32
Returns the value of earnings_pub_type, or the default value if earnings_pub_type is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventItem
impl<'de> Deserialize<'de> for EventItem
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 EventItem
impl Message for EventItem
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.