Skip to main content

WarrantListReq

Struct WarrantListReq 

Source
pub struct WarrantListReq {
Show 50 fields pub only_count: Option<i32>, pub issuer_id: Option<i32>, pub stock_owner: Option<u64>, pub arry_warrant_type: Vec<i32>, pub cur_min: Option<u32>, pub cur_max: Option<u32>, pub street_min: Option<i32>, pub street_max: Option<i32>, pub vol_min: Option<u64>, pub vol_max: Option<u64>, pub maturity_date_min: Option<u32>, pub maturity_date_max: Option<u32>, pub strick_min: Option<u32>, pub strick_max: Option<u32>, pub conversion_min: Option<u32>, pub conversion_max: Option<u32>, pub ipop_min: Option<i32>, pub ipop_max: Option<i32>, pub premium_min: Option<i32>, pub premium_max: Option<i32>, pub recovery_min: Option<u32>, pub recovery_max: Option<u32>, pub implied_min: Option<u32>, pub implied_max: Option<u32>, pub leverage_ratio_min: Option<u32>, pub leverage_ratio_max: Option<u32>, pub lang_id: Option<i32>, pub price_recovery_ratio_min: Option<i64>, pub price_recovery_ratio_max: Option<i64>, pub delta_min: Option<i32>, pub delta_max: Option<i32>, pub sort_col: i32, pub sort_ascend: i32, pub data_from: Option<i32>, pub data_max_count: Option<i32>, pub status_filter: Option<i32>, pub multiple_issuers: Vec<i32>, pub ipo_period: Option<i32>, pub buy_vol_min: Option<u64>, pub buy_vol_max: Option<u64>, pub sell_vol_min: Option<u64>, pub sell_vol_max: Option<u64>, pub effective_leverage_min: Option<i64>, pub effective_leverage_max: Option<i64>, pub filter_no_trade_status: Option<i32>, pub is_bmp: Option<i32>, pub maturity_date_screens: Vec<Interval>, pub leverage_ratio_screens: Vec<Interval>, pub status_filter_screens: Vec<i32>, pub market: Option<u32>,
}

Fields§

§only_count: Option<i32>

是否只请求涡轮数量,1:是,0:否

§issuer_id: Option<i32>

发行商

§stock_owner: Option<u64>

正股

§arry_warrant_type: Vec<i32>

类型, 如上定义

§cur_min: Option<u32>

当前价*1000

§cur_max: Option<u32>§street_min: Option<i32>

街货占比% 1001000

§street_max: Option<i32>§vol_min: Option<u64>

成交量

§vol_max: Option<u64>§maturity_date_min: Option<u32>

到期日, 到期日范围的开始时间戳, 精确到秒

§maturity_date_max: Option<u32>

到期日范围的结束时间戳, 精确到秒

§strick_min: Option<u32>

行使价*1000

§strick_max: Option<u32>§conversion_min: Option<u32>

换股比率*1000

§conversion_max: Option<u32>§ipop_min: Option<i32>

价内/价外1001000 (可为负值)

§ipop_max: Option<i32>§premium_min: Option<i32>

溢价1001000 (可为负值)

§premium_max: Option<i32>§recovery_min: Option<u32>

收回价*1000

§recovery_max: Option<u32>§implied_min: Option<u32>

引伸波幅*1000

§implied_max: Option<u32>§leverage_ratio_min: Option<u32>

杠杆比率*1000

§leverage_ratio_max: Option<u32>§lang_id: Option<i32>

语言id ,用于按名称排序时用: 简体=0 繁体=1 英文=2

§price_recovery_ratio_min: Option<i64>

正股距回收价% 1001000

§price_recovery_ratio_max: Option<i64>

正股距回收价% 1001000

§delta_min: Option<i32>

对冲值

§delta_max: Option<i32>

对冲值

§sort_col: i32

排序列id, 如上定义

§sort_ascend: i32

升序=1, 降序=0

§data_from: Option<i32>

数据起始项

§data_max_count: Option<i32>

数据返回最大数

§status_filter: Option<i32>

状态过滤, 0:返回全部涡轮(正常和终止交易), 1:返回正常交易状态的涡轮,

§multiple_issuers: Vec<i32>

发行商, 支持多选,不填为所有发行商

§ipo_period: Option<i32>

上市时间,参考枚举IpoPeriod,也可以填其它数值(除0外,正数都包含当天)

§buy_vol_min: Option<u64>

买量

§buy_vol_max: Option<u64>

买量

§sell_vol_min: Option<u64>

卖量

§sell_vol_max: Option<u64>

卖量

§effective_leverage_min: Option<i64>

有效杠杆,*1000

§effective_leverage_max: Option<i64>

有效杠杆,*1000

§filter_no_trade_status: Option<i32>

过滤上市至今无交易状态(0:过滤,1:不过滤)

§is_bmp: Option<i32>

是否bmp权限(bmp权限价格返回为延时价格)1为是,0为否

§maturity_date_screens: Vec<Interval>

到期日多个范围筛选(多选)区间字段格式设置与上述单个范围筛选保持一致

§leverage_ratio_screens: Vec<Interval>

杠杆比例多个范围筛选(多选)区间字段格式设置与上述单个范围筛选保持一致

§status_filter_screens: Vec<i32>

状态过滤多选。设置的枚举如上筛选字段 status_filter

§market: Option<u32>

市场(与客户端请求的协议头的市场一致,svr不关心,为方便客户端云同步的策略识别而用)

Implementations§

Source§

impl WarrantListReq

Source

pub fn issuer_id(&self) -> i32

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

Source

pub fn stock_owner(&self) -> u64

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

Source

pub fn cur_min(&self) -> u32

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

Source

pub fn cur_max(&self) -> u32

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

Source

pub fn street_min(&self) -> i32

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

Source

pub fn street_max(&self) -> i32

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

Source

pub fn vol_min(&self) -> u64

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

Source

pub fn vol_max(&self) -> u64

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

Source

pub fn maturity_date_min(&self) -> u32

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

Source

pub fn maturity_date_max(&self) -> u32

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

Source

pub fn strick_min(&self) -> u32

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

Source

pub fn strick_max(&self) -> u32

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

Source

pub fn conversion_min(&self) -> u32

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

Source

pub fn conversion_max(&self) -> u32

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

Source

pub fn ipop_min(&self) -> i32

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

Source

pub fn ipop_max(&self) -> i32

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

Source

pub fn premium_min(&self) -> i32

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

Source

pub fn premium_max(&self) -> i32

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

Source

pub fn recovery_min(&self) -> u32

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

Source

pub fn recovery_max(&self) -> u32

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

Source

pub fn implied_min(&self) -> u32

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

Source

pub fn implied_max(&self) -> u32

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

Source

pub fn leverage_ratio_min(&self) -> u32

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

Source

pub fn leverage_ratio_max(&self) -> u32

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

Source

pub fn lang_id(&self) -> i32

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

Source

pub fn price_recovery_ratio_min(&self) -> i64

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

Source

pub fn price_recovery_ratio_max(&self) -> i64

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

Source

pub fn delta_min(&self) -> i32

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

Source

pub fn delta_max(&self) -> i32

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

Source

pub fn data_from(&self) -> i32

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

Source

pub fn data_max_count(&self) -> i32

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

Source

pub fn status_filter(&self) -> i32

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

Source

pub fn ipo_period(&self) -> i32

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

Source

pub fn only_count(&self) -> i32

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

Source

pub fn buy_vol_min(&self) -> u64

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

Source

pub fn buy_vol_max(&self) -> u64

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

Source

pub fn sell_vol_min(&self) -> u64

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

Source

pub fn sell_vol_max(&self) -> u64

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

Source

pub fn effective_leverage_min(&self) -> i64

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

Source

pub fn effective_leverage_max(&self) -> i64

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

Source

pub fn filter_no_trade_status(&self) -> i32

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

Source

pub fn is_bmp(&self) -> i32

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

Source

pub fn market(&self) -> u32

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

Trait Implementations§

Source§

impl Clone for WarrantListReq

Source§

fn clone(&self) -> WarrantListReq

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for WarrantListReq

Source§

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

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

impl Default for WarrantListReq

Source§

fn default() -> Self

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

impl Message for WarrantListReq

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 WarrantListReq

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 StructuralPartialEq for WarrantListReq

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more