WarrantSnapshotExData

Struct WarrantSnapshotExData 

Source
pub struct WarrantSnapshotExData {
Show 25 fields pub conversion_rate: f64, pub warrant_type: i32, pub strike_price: f64, pub maturity_time: String, pub end_trade_time: String, pub owner: Security, pub recovery_price: f64, pub street_volumn: i64, pub issue_volumn: i64, pub street_rate: f64, pub delta: f64, pub implied_volatility: f64, pub premium: f64, pub maturity_timestamp: Option<f64>, pub end_trade_timestamp: Option<f64>, pub leverage: Option<f64>, pub ipop: Option<f64>, pub break_even_point: Option<f64>, pub conversion_price: Option<f64>, pub price_recovery_ratio: Option<f64>, pub score: Option<f64>, pub upper_strike_price: Option<f64>, pub lower_strike_price: Option<f64>, pub in_line_price_status: Option<i32>, pub issuer_code: Option<String>,
}
Expand description

窝轮类型额外数据

Fields§

§conversion_rate: f64

换股比率

§warrant_type: i32

Qot_Common.WarrantType,窝轮类型

§strike_price: f64

行使价

§maturity_time: String

到期日时间字符串

§end_trade_time: String

最后交易日时间字符串

§owner: Security

所属正股

§recovery_price: f64

收回价,仅牛熊证支持该字段

§street_volumn: i64

街货量

§issue_volumn: i64

发行量

§street_rate: f64

街货占比(该字段为百分比字段,默认不展示%,如20实际对应20%)

§delta: f64

对冲值,仅认购认沽支持该字段

§implied_volatility: f64

引申波幅,仅认购认沽支持该字段

§premium: f64

溢价(该字段为百分比字段,默认不展示%,如20实际对应20%)

§maturity_timestamp: Option<f64>

到期日时间戳

§end_trade_timestamp: Option<f64>

最后交易日时间戳

§leverage: Option<f64>

杠杆比率(倍)

§ipop: Option<f64>

价内/价外(该字段为百分比字段,默认不展示%,如20实际对应20%)

§break_even_point: Option<f64>

打和点

§conversion_price: Option<f64>

换股价

§price_recovery_ratio: Option<f64>

正股距收回价(该字段为百分比字段,默认不展示%,如20实际对应20%)

§score: Option<f64>

综合评分

§upper_strike_price: Option<f64>

上限价,仅界内证支持该字段

§lower_strike_price: Option<f64>

下限价,仅界内证支持该字段

§in_line_price_status: Option<i32>

Qot_Common.PriceType, 界内界外,仅界内证支持该字段

§issuer_code: Option<String>

发行人代码

Implementations§

Source§

impl WarrantSnapshotExData

Source

pub fn maturity_timestamp(&self) -> f64

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

Source

pub fn end_trade_timestamp(&self) -> f64

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

Source

pub fn leverage(&self) -> f64

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

Source

pub fn ipop(&self) -> f64

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

Source

pub fn break_even_point(&self) -> f64

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

Source

pub fn conversion_price(&self) -> f64

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

Source

pub fn price_recovery_ratio(&self) -> f64

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

Source

pub fn score(&self) -> f64

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

Source

pub fn upper_strike_price(&self) -> f64

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

Source

pub fn lower_strike_price(&self) -> f64

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

Source

pub fn in_line_price_status(&self) -> i32

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

Source

pub fn issuer_code(&self) -> &str

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

Trait Implementations§

Source§

impl Clone for WarrantSnapshotExData

Source§

fn clone(&self) -> WarrantSnapshotExData

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 WarrantSnapshotExData

Source§

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

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

impl Default for WarrantSnapshotExData

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for WarrantSnapshotExData

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 WarrantSnapshotExData

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 WarrantSnapshotExData

Source§

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

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 WarrantSnapshotExData

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.

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>,