WarrantData

Struct WarrantData 

Source
pub struct WarrantData {
Show 45 fields pub stock: Security, pub owner: Security, pub type: i32, pub issuer: i32, pub maturity_time: String, pub maturity_timestamp: Option<f64>, pub list_time: String, pub list_timestamp: Option<f64>, pub last_trade_time: String, pub last_trade_timestamp: Option<f64>, pub recovery_price: Option<f64>, pub conversion_ratio: f64, pub lot_size: i32, pub strike_price: f64, pub last_close_price: f64, pub name: String, pub cur_price: f64, pub price_change_val: f64, pub change_rate: f64, pub status: i32, pub bid_price: f64, pub ask_price: f64, pub bid_vol: i64, pub ask_vol: i64, pub volume: i64, pub turnover: f64, pub score: f64, pub premium: f64, pub break_even_point: f64, pub leverage: f64, pub ipop: f64, pub price_recovery_ratio: Option<f64>, pub conversion_price: f64, pub street_rate: f64, pub street_vol: i64, pub amplitude: f64, pub issue_size: i64, pub high_price: f64, pub low_price: f64, pub implied_volatility: Option<f64>, pub delta: Option<f64>, pub effective_leverage: f64, pub upper_strike_price: Option<f64>, pub lower_strike_price: Option<f64>, pub in_line_price_status: Option<i32>,
}

Fields§

§stock: Security

静态数据项

股票

§owner: Security

所属正股

§type: i32

Qot_Common.WarrantType,窝轮类型

§issuer: i32

Qot_Common.Issuer,发行人

§maturity_time: String

到期日

§maturity_timestamp: Option<f64>

到期日时间戳

§list_time: String

上市时间

§list_timestamp: Option<f64>

上市时间戳

§last_trade_time: String

最后交易日

§last_trade_timestamp: Option<f64>

最后交易日时间戳

§recovery_price: Option<f64>

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

§conversion_ratio: f64

换股比率

§lot_size: i32

每手数量

§strike_price: f64

行使价

§last_close_price: f64

昨收价

§name: String

名称

§cur_price: f64

动态数据项

当前价

§price_change_val: f64

涨跌额

§change_rate: f64

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

§status: i32

Qot_Common.WarrantStatus,窝轮状态

§bid_price: f64

买入价

§ask_price: f64

卖出价

§bid_vol: i64

买量

§ask_vol: i64

卖量

§volume: i64

成交量

§turnover: f64

成交额

§score: f64

综合评分

§premium: f64

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

§break_even_point: f64

打和点

§leverage: f64

杠杆比率(倍)

§ipop: f64

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

§price_recovery_ratio: Option<f64>

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

§conversion_price: f64

换股价

§street_rate: f64

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

§street_vol: i64

街货量

§amplitude: f64

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

§issue_size: i64

发行量

§high_price: f64

最高价

§low_price: f64

最低价

§implied_volatility: Option<f64>

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

§delta: Option<f64>

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

§effective_leverage: f64

有效杠杆

§upper_strike_price: Option<f64>

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

§lower_strike_price: Option<f64>

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

§in_line_price_status: Option<i32>

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

Implementations§

Source§

impl WarrantData

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 list_timestamp(&self) -> f64

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

Source

pub fn last_trade_timestamp(&self) -> f64

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

Source

pub fn recovery_price(&self) -> f64

Returns the value of recovery_price, or the default value if recovery_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 implied_volatility(&self) -> f64

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

Source

pub fn delta(&self) -> f64

Returns the value of delta, or the default value if delta 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.

Trait Implementations§

Source§

impl Clone for WarrantData

Source§

fn clone(&self) -> WarrantData

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 WarrantData

Source§

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

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

impl Default for WarrantData

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for WarrantData

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 WarrantData

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 WarrantData

Source§

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

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 WarrantData

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