Skip to main content

WarrantItem

Struct WarrantItem 

Source
pub struct WarrantItem {
Show 43 fields pub stock_id: Option<u64>, pub stock_owner: Option<u64>, pub issuer_id: Option<u32>, pub warrant_type: Option<i32>, pub strike_price: Option<f64>, pub maturity_date: Option<u64>, pub last_trade_date: Option<u64>, pub conversion_ratio: Option<f64>, pub lastclose_price: Option<f64>, pub recovery_price: Option<f64>, pub stock_owner_price: Option<f64>, pub current_price: Option<f64>, pub volume: Option<u64>, pub turnover: Option<f64>, pub sell_vol: Option<u64>, pub buy_vol: Option<u64>, pub sell_price: Option<f64>, pub buy_price: Option<f64>, pub street_rate: Option<f64>, pub high_price: Option<f64>, pub low_price: Option<f64>, pub implied_volatility: Option<f64>, pub delta: Option<f64>, pub status: Option<i32>, pub street_rate_new: Option<f64>, pub score: Option<f64>, pub premium: Option<f64>, pub leverage: Option<f64>, pub effective_leverage: Option<f64>, pub break_even_point: Option<f64>, pub ipop: Option<f64>, pub amplitude: Option<f64>, pub fx_score: Option<f64>, pub ipo_time: Option<u64>, pub street_vol: Option<u64>, pub lot_size: Option<u32>, pub issue_size: Option<u64>, pub ipo_price: Option<f64>, pub upper_strike_price: Option<f64>, pub lower_strike_price: Option<f64>, pub iw_price_status: Option<u32>, pub sensitivity: Option<f64>, pub price_recovery_ratio: Option<f64>,
}

Fields§

§stock_id: Option<u64>

股票ID (u64 StockHash)

§stock_owner: Option<u64>

正股ID

§issuer_id: Option<u32>

发行人ID

§warrant_type: Option<i32>

类型: 1=认购, 2=认沽, 3=牛证, 4=熊证, 5=界内证

§strike_price: Option<f64>

行使价

§maturity_date: Option<u64>

到期日 (时间戳秒)

§last_trade_date: Option<u64>

最后交易日 (时间戳秒)

§conversion_ratio: Option<f64>

换股比率

§lastclose_price: Option<f64>

昨收价

§recovery_price: Option<f64>

收回价, 仅牛熊证

§stock_owner_price: Option<f64>

field 11-19 reserved

正股价

§current_price: Option<f64>

最新价

§volume: Option<u64>

成交量

§turnover: Option<f64>

成交额

§sell_vol: Option<u64>

卖量

§buy_vol: Option<u64>

买量

§sell_price: Option<f64>

卖出价

§buy_price: Option<f64>

买入价

§street_rate: Option<f64>

街货占比

§high_price: Option<f64>

最高价

§low_price: Option<f64>

最低价

§implied_volatility: Option<f64>

引伸波幅

§delta: Option<f64>

对冲值

§status: Option<i32>

状态: 0=正常, 1=停牌, 2=终止交易, 3=待上市

§street_rate_new: Option<f64>

街货占比(新)

§score: Option<f64>

综合评分

§premium: Option<f64>

溢价 (%)

§leverage: Option<f64>

杠杆比率

§effective_leverage: Option<f64>

有效杠杆

§break_even_point: Option<f64>

打和点

§ipop: Option<f64>

价内/价外 (%)

§amplitude: Option<f64>

振幅 (%)

§fx_score: Option<f64>

发行评分

§ipo_time: Option<u64>

上市日期 (时间戳秒)

§street_vol: Option<u64>

街货量

§lot_size: Option<u32>

每手数量

§issue_size: Option<u64>

发行量

§ipo_price: Option<f64>

发行价

§upper_strike_price: Option<f64>

上限价, 仅界内证

§lower_strike_price: Option<f64>

下限价, 仅界内证

§iw_price_status: Option<u32>

界内证价格状态: 0=界内, 1=界外

§sensitivity: Option<f64>

敏感度

§price_recovery_ratio: Option<f64>

正股距收回价 (%)

Implementations§

Source§

impl WarrantItem

Source

pub fn stock_id(&self) -> u64

Returns the value of stock_id, or the default value if stock_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 issuer_id(&self) -> u32

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

Source

pub fn warrant_type(&self) -> i32

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

Source

pub fn strike_price(&self) -> f64

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

Source

pub fn maturity_date(&self) -> u64

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

Source

pub fn last_trade_date(&self) -> u64

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

Source

pub fn conversion_ratio(&self) -> f64

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

Source

pub fn lastclose_price(&self) -> f64

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

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

Source

pub fn current_price(&self) -> f64

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

Source

pub fn volume(&self) -> u64

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

Source

pub fn turnover(&self) -> f64

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

Source

pub fn sell_vol(&self) -> u64

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

Source

pub fn buy_vol(&self) -> u64

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

Source

pub fn sell_price(&self) -> f64

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

Source

pub fn buy_price(&self) -> f64

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

Source

pub fn street_rate(&self) -> f64

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

Source

pub fn high_price(&self) -> f64

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

Source

pub fn low_price(&self) -> f64

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

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

Source

pub fn street_rate_new(&self) -> f64

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

Source

pub fn score(&self) -> f64

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

Source

pub fn premium(&self) -> f64

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

Source

pub fn leverage(&self) -> f64

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

Source

pub fn effective_leverage(&self) -> f64

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

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

Source

pub fn amplitude(&self) -> f64

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

Source

pub fn fx_score(&self) -> f64

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

Source

pub fn ipo_time(&self) -> u64

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

Source

pub fn street_vol(&self) -> u64

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

Source

pub fn lot_size(&self) -> u32

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

Source

pub fn issue_size(&self) -> u64

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

Source

pub fn ipo_price(&self) -> f64

Returns the value of ipo_price, or the default value if ipo_price 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 iw_price_status(&self) -> u32

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

Source

pub fn sensitivity(&self) -> f64

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

Trait Implementations§

Source§

impl Clone for WarrantItem

Source§

fn clone(&self) -> WarrantItem

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 WarrantItem

Source§

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

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

impl Default for WarrantItem

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for WarrantItem

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 WarrantItem

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 WarrantItem

Source§

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

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 Copy for WarrantItem

Source§

impl StructuralPartialEq for WarrantItem

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