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 strick_price: Option<u32>, pub maturity_date: Option<u64>, pub last_trade_date: Option<u64>, pub conversion_ratio: Option<u32>, pub lastclose_price: Option<u32>, pub recovery_price: Option<u32>, pub stock_owner_price: Option<u32>, pub current_price: Option<u32>, pub volume: Option<u64>, pub turnover: Option<u64>, pub sell_vol: Option<u64>, pub buy_vol: Option<u64>, pub sell_price: Option<u32>, pub buy_price: Option<u32>, pub street_rate: Option<u32>, pub high_price: Option<u32>, pub low_price: Option<u32>, pub implied_volatility: Option<u32>, pub delta: Option<i32>, pub status: Option<i32>, pub street_rate_new: Option<u32>, pub score: Option<u32>, pub premium: Option<i64>, pub leverage: Option<u64>, pub effective_leverage: Option<i64>, pub break_even_point: Option<u32>, pub ipop: Option<i64>, pub amplitude: Option<i64>, pub fx_score: Option<u32>, pub ipo_time: Option<u64>, pub street_vol: Option<u64>, pub lot_size: Option<u32>, pub issue_size: Option<u64>, pub ipo_price: Option<u32>, pub upper_strike_price: Option<u64>, pub lower_strike_price: Option<u64>, pub iw_price_status: Option<u32>, pub sensitivity: Option<i32>, pub price_recovery_ratio: Option<i64>,
}

Fields§

§stock_id: Option<u64>

静态数据项:

股票id

§stock_owner: Option<u64>

正股id

§issuer_id: Option<u32>

发行商id

§warrant_type: Option<i32>

窝轮类型

§strick_price: Option<u32>

行使价

§maturity_date: Option<u64>

到期日

§last_trade_date: Option<u64>

最后交易日

§conversion_ratio: Option<u32>

换股比率

§lastclose_price: Option<u32>

昨收价

§recovery_price: Option<u32>

回收价

§stock_owner_price: Option<u32>

动态数据项

正股价格

§current_price: Option<u32>

当前价 *1000

§volume: Option<u64>

成交量

§turnover: Option<u64>

成交额

§sell_vol: Option<u64>

卖量

§buy_vol: Option<u64>

买量

§sell_price: Option<u32>

卖价

§buy_price: Option<u32>

买价

§street_rate: Option<u32>

街货占比, client展现为: street_rate/1000

§high_price: Option<u32>

最高价 *1000

§low_price: Option<u32>

最低价

§implied_volatility: Option<u32>

引伸波幅

§delta: Option<i32>

对冲值

§status: Option<i32>

WarrantStatus

§street_rate_new: Option<u32>

另一个街货占比, =street_rate/100, 即client展现为:street_rate_new/10, 为了与推送逻辑保持一致,

§score: Option<u32>

因BMP行情状态下,两边需要统一计算

权证评分

§premium: Option<i64>

溢价%,*100000

§leverage: Option<u64>

杠杆比例(倍),*1000

§effective_leverage: Option<i64>

有效杠杆,*1000

§break_even_point: Option<u32>

打和点,*1000

§ipop: Option<i64>

价内/价外%, *100000

§amplitude: Option<i64>

振幅%,*100000

§fx_score: Option<u32>

法兴评分

§ipo_time: Option<u64>

上市日期

§street_vol: Option<u64>

街货量

§lot_size: Option<u32>

每手

§issue_size: Option<u64>

发行量

§ipo_price: Option<u32>

发行价,*1000

§upper_strike_price: Option<u64>

上限价 倍数 *10^9

§lower_strike_price: Option<u64>

下限价 倍数 *10^9

§iw_price_status: Option<u32>

界内/界外状态标志,0为界内,1为界外

§sensitivity: Option<i32>

敏感度 *1000(精确到0.001)

§price_recovery_ratio: Option<i64>

正股距回收价% 1001000

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 strick_price(&self) -> u32

Returns the value of strick_price, or the default value if strick_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) -> u32

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

Source

pub fn lastclose_price(&self) -> u32

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

Source

pub fn recovery_price(&self) -> u32

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

Source

pub fn stock_owner_price(&self) -> u32

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

Source

pub fn current_price(&self) -> u32

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

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

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

Source

pub fn buy_price(&self) -> u32

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

Source

pub fn street_rate(&self) -> u32

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

Source

pub fn high_price(&self) -> u32

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

Source

pub fn low_price(&self) -> u32

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

Source

pub fn implied_volatility(&self) -> u32

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

Source

pub fn delta(&self) -> i32

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

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

Source

pub fn score(&self) -> u32

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

Source

pub fn premium(&self) -> i64

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

Source

pub fn leverage(&self) -> u64

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

Source

pub fn effective_leverage(&self) -> i64

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

Source

pub fn break_even_point(&self) -> u32

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

Source

pub fn ipop(&self) -> i64

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

Source

pub fn amplitude(&self) -> i64

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

Source

pub fn fx_score(&self) -> u32

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

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

Source

pub fn upper_strike_price(&self) -> u64

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

Source

pub fn lower_strike_price(&self) -> u64

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

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

Source

pub fn price_recovery_ratio(&self) -> i64

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

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. 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 Copy for WarrantItem

Source§

impl Eq 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
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more