Skip to main content

EventAlertItem

Struct EventAlertItem 

Source
pub struct EventAlertItem {
Show 17 fields pub key: Option<i64>, pub enable: Option<bool>, pub option_market: Option<i32>, pub watchlist_group_name: Option<String>, pub underlying: Option<Security>, pub option_type: Option<i32>, pub side_type_list: Vec<i32>, pub order_type_list: Vec<i32>, pub market_cap_range: Option<Interval>, pub expiry_days_range: Option<Interval>, pub price_range: Option<Interval>, pub size_range: Option<Interval>, pub premium_range: Option<Interval>, pub iv_range: Option<Interval>, pub earnings_date_begin: Option<String>, pub earnings_date_end: Option<String>, pub note: Option<String>,
}
Expand description

告警项

Fields§

§key: Option<i64>

–– 标识 ––

告警唯一标识(新增时不传,修改/删除时必传)

§enable: Option<bool>

告警开关(true=开启, false=暂停)

§option_market: Option<i32>

–– 告警范围(三选一,全不填或填多个后台拒绝) ––

OptionMarket 市场品类

§watchlist_group_name: Option<String>

自选股分组名称

§underlying: Option<Security>

指定标的

§option_type: Option<i32>

–– 枚举筛选条件 ––

期权类型:CALL(1)/PUT(2),不传默认全部

§side_type_list: Vec<i32>

成交方向:BUY(1)/SELL(2)/NEUTRAL(3)(复用 TickerType),不传默认全部

§order_type_list: Vec<i32>

订单类型(Qot_GetOptionEvent.OptionOrderType),不传默认全部

§market_cap_range: Option<Interval>

–– 范围筛选条件(Interval 复用 Qot_GetOptionEvent 定义) ––

标的市值范围

§expiry_days_range: Option<Interval>

距到期天数范围

§price_range: Option<Interval>

异动成交价范围

§size_range: Option<Interval>

异动成交量范围(张)

§premium_range: Option<Interval>

异动成交额范围

§iv_range: Option<Interval>

隐含波动率范围(%)

§earnings_date_begin: Option<String>

–– 财报时间筛选(必须同时传入 begin 和 end,且 end >= begin) ––

财报时间筛选起始日期,格式 yyyy-MM-dd,必须与 earningsDateEnd 同时传入

§earnings_date_end: Option<String>

财报时间筛选截止日期,格式 yyyy-MM-dd,必须与 earningsDateBegin 同时传入,且不能小于起始日期

§note: Option<String>

–– 备注 ––

备注(最多 20 字)

Implementations§

Source§

impl EventAlertItem

Source

pub fn key(&self) -> i64

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

Source

pub fn enable(&self) -> bool

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

Source

pub fn option_market(&self) -> i32

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

Source

pub fn watchlist_group_name(&self) -> &str

Returns the value of watchlist_group_name, or the default value if watchlist_group_name 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 earnings_date_begin(&self) -> &str

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

Source

pub fn earnings_date_end(&self) -> &str

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

Source

pub fn note(&self) -> &str

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

Trait Implementations§

Source§

impl Clone for EventAlertItem

Source§

fn clone(&self) -> EventAlertItem

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 EventAlertItem

Source§

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

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

impl Default for EventAlertItem

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for EventAlertItem

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 EventAlertItem

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 EventAlertItem

Source§

fn eq(&self, other: &EventAlertItem) -> 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 EventAlertItem

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 EventAlertItem

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.