C2s

Struct C2s 

Source
pub struct C2s {
Show 34 fields pub begin: i32, pub num: i32, pub sort_field: i32, pub ascend: bool, pub owner: Option<Security>, pub type_list: Vec<i32>, pub issuer_list: Vec<i32>, pub maturity_time_min: Option<String>, pub maturity_time_max: Option<String>, pub ipo_period: Option<i32>, pub price_type: Option<i32>, pub status: Option<i32>, pub cur_price_min: Option<f64>, pub cur_price_max: Option<f64>, pub strike_price_min: Option<f64>, pub strike_price_max: Option<f64>, pub street_min: Option<f64>, pub street_max: Option<f64>, pub conversion_min: Option<f64>, pub conversion_max: Option<f64>, pub vol_min: Option<u64>, pub vol_max: Option<u64>, pub premium_min: Option<f64>, pub premium_max: Option<f64>, pub leverage_ratio_min: Option<f64>, pub leverage_ratio_max: Option<f64>, pub delta_min: Option<f64>, pub delta_max: Option<f64>, pub implied_min: Option<f64>, pub implied_max: Option<f64>, pub recovery_price_min: Option<f64>, pub recovery_price_max: Option<f64>, pub price_recovery_ratio_min: Option<f64>, pub price_recovery_ratio_max: Option<f64>,
}

Fields§

§begin: i32

数据起始点

§num: i32

请求数据个数,最大200

§sort_field: i32

Qot_Common.SortField,根据哪个字段排序

§ascend: bool

升序ture,降序false

§owner: Option<Security>

以下为筛选条件,可选字段,不填表示不过滤

所属正股

§type_list: Vec<i32>

Qot_Common.WarrantType,窝轮类型过滤列表

§issuer_list: Vec<i32>

Qot_Common.Issuer,发行人过滤列表

§maturity_time_min: Option<String>

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

§maturity_time_max: Option<String>

到期日范围的结束时间戳

§ipo_period: Option<i32>

Qot_Common.IpoPeriod,上市日

§price_type: Option<i32>

Qot_Common.PriceType,价内/价外(暂不支持界内证的界内外筛选)

§status: Option<i32>

Qot_Common.WarrantStatus,窝轮状态

§cur_price_min: Option<f64>

最新价的过滤下限(闭区间),不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§cur_price_max: Option<f64>

最新价的过滤上限(闭区间),不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§strike_price_min: Option<f64>

行使价的过滤下限(闭区间),不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§strike_price_max: Option<f64>

行使价的过滤上限(闭区间),不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§street_min: Option<f64>

街货占比的过滤下限(闭区间),该字段为百分比字段,默认不展示 %,如 20 实际对应 20%。不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§street_max: Option<f64>

街货占比的过滤上限(闭区间),该字段为百分比字段,默认不展示 %,如 20 实际对应 20%。不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§conversion_min: Option<f64>

换股比率的过滤下限(闭区间),不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§conversion_max: Option<f64>

换股比率的过滤上限(闭区间),不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§vol_min: Option<u64>

成交量的过滤下限(闭区间),不传代表下限为 -∞

§vol_max: Option<u64>

成交量的过滤上限(闭区间),不传代表上限为 +∞

§premium_min: Option<f64>

溢价的过滤下限(闭区间),该字段为百分比字段,默认不展示 %,如 20 实际对应 20%。不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§premium_max: Option<f64>

溢价的过滤上限(闭区间),该字段为百分比字段,默认不展示 %,如 20 实际对应 20%。不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§leverage_ratio_min: Option<f64>

杠杆比率的过滤下限(闭区间),不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§leverage_ratio_max: Option<f64>

杠杆比率的过滤上限(闭区间),不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§delta_min: Option<f64>

对冲值的过滤下限(闭区间),仅认购认沽支持此字段过滤,不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§delta_max: Option<f64>

对冲值的过滤上限(闭区间),仅认购认沽支持此字段过滤,不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§implied_min: Option<f64>

引伸波幅的过滤下限(闭区间),仅认购认沽支持此字段过滤,不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§implied_max: Option<f64>

引伸波幅的过滤上限(闭区间),仅认购认沽支持此字段过滤,不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§recovery_price_min: Option<f64>

收回价的过滤下限(闭区间),仅牛熊证支持此字段过滤,不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§recovery_price_max: Option<f64>

收回价的过滤上限(闭区间),仅牛熊证支持此字段过滤,不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

§price_recovery_ratio_min: Option<f64>

正股距收回价,的过滤下限(闭区间),仅牛熊证支持此字段过滤。该字段为百分比字段,默认不展示 %,如 20 实际对应 20%。不传代表下限为 -∞(精确到小数点后 3 位,超出部分会被舍弃)

§price_recovery_ratio_max: Option<f64>

正股距收回价,的过滤上限(闭区间),仅牛熊证支持此字段过滤。该字段为百分比字段,默认不展示 %,如 20 实际对应 20%。不传代表上限为 +∞(精确到小数点后 3 位,超出部分会被舍弃)

Implementations§

Source§

impl C2s

Source

pub fn maturity_time_min(&self) -> &str

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

Source

pub fn maturity_time_max(&self) -> &str

Returns the value of maturity_time_max, or the default value if maturity_time_max 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 price_type(&self) -> i32

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

Source

pub fn status(&self) -> i32

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

Source

pub fn cur_price_min(&self) -> f64

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

Source

pub fn cur_price_max(&self) -> f64

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

Source

pub fn strike_price_min(&self) -> f64

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

Source

pub fn strike_price_max(&self) -> f64

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

Source

pub fn street_min(&self) -> f64

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

Source

pub fn street_max(&self) -> f64

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

Source

pub fn conversion_min(&self) -> f64

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

Source

pub fn conversion_max(&self) -> f64

Returns the value of conversion_max, or the default value if conversion_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 premium_min(&self) -> f64

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

Source

pub fn premium_max(&self) -> f64

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

Source

pub fn leverage_ratio_min(&self) -> f64

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

Source

pub fn leverage_ratio_max(&self) -> f64

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

Source

pub fn delta_min(&self) -> f64

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

Source

pub fn delta_max(&self) -> f64

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

Source

pub fn implied_min(&self) -> f64

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

Source

pub fn implied_max(&self) -> f64

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

Source

pub fn recovery_price_min(&self) -> f64

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

Source

pub fn recovery_price_max(&self) -> f64

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

Source

pub fn price_recovery_ratio_min(&self) -> f64

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) -> f64

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

Trait Implementations§

Source§

impl Clone for C2s

Source§

fn clone(&self) -> C2s

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 C2s

Source§

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

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

impl Default for C2s

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for C2s
where C2s: Default,

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 C2s

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 C2s

Source§

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

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 C2s

Auto Trait Implementations§

§

impl Freeze for C2s

§

impl RefUnwindSafe for C2s

§

impl Send for C2s

§

impl Sync for C2s

§

impl Unpin for C2s

§

impl UnwindSafe for C2s

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.

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

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