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: i32Qot_Common.WarrantType,窝轮类型
issuer: i32Qot_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: i32Qot_Common.WarrantStatus,窝轮状态
bid_price: f64买入价
ask_price: f64卖出价
bid_vol: i64买量
ask_vol: i64卖量
volume: i64成交量
turnover: f64成交额
score: 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
impl WarrantData
Sourcepub fn maturity_timestamp(&self) -> f64
pub fn maturity_timestamp(&self) -> f64
Returns the value of maturity_timestamp, or the default value if maturity_timestamp is unset.
Sourcepub fn list_timestamp(&self) -> f64
pub fn list_timestamp(&self) -> f64
Returns the value of list_timestamp, or the default value if list_timestamp is unset.
Sourcepub fn last_trade_timestamp(&self) -> f64
pub fn last_trade_timestamp(&self) -> f64
Returns the value of last_trade_timestamp, or the default value if last_trade_timestamp is unset.
Sourcepub fn recovery_price(&self) -> f64
pub fn recovery_price(&self) -> f64
Returns the value of recovery_price, or the default value if recovery_price is unset.
Sourcepub fn price_recovery_ratio(&self) -> f64
pub fn price_recovery_ratio(&self) -> f64
Returns the value of price_recovery_ratio, or the default value if price_recovery_ratio is unset.
Sourcepub fn implied_volatility(&self) -> f64
pub fn implied_volatility(&self) -> f64
Returns the value of implied_volatility, or the default value if implied_volatility is unset.
Sourcepub fn upper_strike_price(&self) -> f64
pub fn upper_strike_price(&self) -> f64
Returns the value of upper_strike_price, or the default value if upper_strike_price is unset.
Sourcepub fn lower_strike_price(&self) -> f64
pub fn lower_strike_price(&self) -> f64
Returns the value of lower_strike_price, or the default value if lower_strike_price is unset.
Sourcepub fn in_line_price_status(&self) -> i32
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
impl Clone for WarrantData
Source§fn clone(&self) -> WarrantData
fn clone(&self) -> WarrantData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WarrantData
impl Debug for WarrantData
Source§impl Default for WarrantData
impl Default for WarrantData
Source§impl<'de> Deserialize<'de> for WarrantDatawhere
WarrantData: Default,
impl<'de> Deserialize<'de> for WarrantDatawhere
WarrantData: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for WarrantData
impl Message for WarrantData
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.