Skip to main content

EventItem

Struct EventItem 

Source
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

Source

pub fn symbol(&self) -> &str

Returns the value of symbol, or the default value if symbol is unset.

Source

pub fn fill_time(&self) -> &str

Returns the value of fill_time, or the default value if fill_time is unset.

Source

pub fn fill_timestamp(&self) -> f64

Returns the value of fill_timestamp, or the default value if fill_timestamp is unset.

Source

pub fn ticker_type(&self) -> i32

Returns the value of ticker_type, or the default value if ticker_type is unset.

Source

pub fn price(&self) -> f64

Returns the value of price, or the default value if price is unset.

Source

pub fn volume(&self) -> i64

Returns the value of volume, or the default value if volume is unset.

Source

pub fn turnover(&self) -> f64

Returns the value of turnover, or the default value if turnover is unset.

Source

pub fn option_type(&self) -> i32

Returns the value of option_type, or the default value if option_type is unset.

Source

pub fn strike_price(&self) -> f64

Returns the value of strike_price, or the default value if strike_price is unset.

Source

pub fn strike_time(&self) -> &str

Returns the value of strike_time, or the default value if strike_time is unset.

Source

pub fn strike_timestamp(&self) -> f64

Returns the value of strike_timestamp, or the default value if strike_timestamp is unset.

Source

pub fn dte(&self) -> i32

Returns the value of dte, or the default value if dte is unset.

Source

pub fn underlying_price(&self) -> f64

Returns the value of underlying_price, or the default value if underlying_price is unset.

Source

pub fn otm(&self) -> f64

Returns the value of otm, or the default value if otm is unset.

Source

pub fn bid_price(&self) -> f64

Returns the value of bid_price, or the default value if bid_price is unset.

Source

pub fn ask_price(&self) -> f64

Returns the value of ask_price, or the default value if ask_price is unset.

Source

pub fn iv(&self) -> f64

Returns the value of iv, or the default value if iv is unset.

Source

pub fn total_volume(&self) -> i64

Returns the value of total_volume, or the default value if total_volume is unset.

Source

pub fn total_open_interest(&self) -> i64

Returns the value of total_open_interest, or the default value if total_open_interest is unset.

Source

pub fn vo_ratio(&self) -> f64

Returns the value of vo_ratio, or the default value if vo_ratio is unset.

Source

pub fn delta(&self) -> f64

Returns the value of delta, or the default value if delta is unset.

Source

pub fn gamma(&self) -> f64

Returns the value of gamma, or the default value if gamma is unset.

Source

pub fn vega(&self) -> f64

Returns the value of vega, or the default value if vega is unset.

Source

pub fn theta(&self) -> f64

Returns the value of theta, or the default value if theta is unset.

Source

pub fn rho(&self) -> f64

Returns the value of rho, or the default value if rho is unset.

Source

pub fn sentiment(&self) -> i32

Returns the value of sentiment, or the default value if sentiment is unset.

Source

pub fn strategy_type(&self) -> i32

Returns the value of strategy_type, or the default value if strategy_type is unset.

Source

pub fn earnings_time(&self) -> &str

Returns the value of earnings_time, or the default value if earnings_time is unset.

Source

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 Clone for EventItem

Source§

fn clone(&self) -> EventItem

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventItem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EventItem

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EventItem

Source§

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 EventItem

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 EventItem

Source§

fn eq(&self, other: &EventItem) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EventItem

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EventItem

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.