DepthMarketDataField

Struct DepthMarketDataField 

Source
#[repr(C)]
pub struct DepthMarketDataField {
Show 48 fields pub trading_day: [u8; 9], pub reserve1: [u8; 31], pub exchange_id: [u8; 9], pub reserve2: [u8; 31], pub last_price: f64, pub pre_settlement_price: f64, pub pre_close_price: f64, pub pre_open_interest: f64, pub open_price: f64, pub highest_price: f64, pub lowest_price: f64, pub volume: i32, pub turnover: f64, pub open_interest: f64, pub close_price: f64, pub settlement_price: f64, pub upper_limit_price: f64, pub lower_limit_price: f64, pub pre_delta: f64, pub curr_delta: f64, pub update_time: [u8; 9], pub update_millisec: i32, pub bid_price1: f64, pub bid_volume1: i32, pub ask_price1: f64, pub ask_volume1: i32, pub bid_price2: f64, pub bid_volume2: i32, pub ask_price2: f64, pub ask_volume2: i32, pub bid_price3: f64, pub bid_volume3: i32, pub ask_price3: f64, pub ask_volume3: i32, pub bid_price4: f64, pub bid_volume4: i32, pub ask_price4: f64, pub ask_volume4: i32, pub bid_price5: f64, pub bid_volume5: i32, pub ask_price5: f64, pub ask_volume5: i32, pub average_price: f64, pub action_day: [u8; 9], pub instrument_id: [u8; 81], pub exchange_inst_id: [u8; 81], pub banding_upper_price: f64, pub banding_lower_price: f64,
}

Fields§

§trading_day: [u8; 9]

交易日

§reserve1: [u8; 31]

保留的无效字段

§exchange_id: [u8; 9]

交易所代码

§reserve2: [u8; 31]

保留的无效字段

§last_price: f64

最新价

§pre_settlement_price: f64

上次结算价

§pre_close_price: f64

昨收盘

§pre_open_interest: f64

昨持仓量

§open_price: f64

今开盘

§highest_price: f64

最高价

§lowest_price: f64

最低价

§volume: i32

数量

§turnover: f64

成交金额

§open_interest: f64

持仓量

§close_price: f64

今收盘

§settlement_price: f64

本次结算价

§upper_limit_price: f64

涨停板价

§lower_limit_price: f64

跌停板价

§pre_delta: f64

昨虚实度

§curr_delta: f64

今虚实度

§update_time: [u8; 9]

最后修改时间

§update_millisec: i32

最后修改毫秒

§bid_price1: f64

申买价一

§bid_volume1: i32

申买量一

§ask_price1: f64

申卖价一

§ask_volume1: i32

申卖量一

§bid_price2: f64

申买价二

§bid_volume2: i32

申买量二

§ask_price2: f64

申卖价二

§ask_volume2: i32

申卖量二

§bid_price3: f64

申买价三

§bid_volume3: i32

申买量三

§ask_price3: f64

申卖价三

§ask_volume3: i32

申卖量三

§bid_price4: f64

申买价四

§bid_volume4: i32

申买量四

§ask_price4: f64

申卖价四

§ask_volume4: i32

申卖量四

§bid_price5: f64

申买价五

§bid_volume5: i32

申买量五

§ask_price5: f64

申卖价五

§ask_volume5: i32

申卖量五

§average_price: f64

当日均价

§action_day: [u8; 9]

业务日期

§instrument_id: [u8; 81]

合约代码

§exchange_inst_id: [u8; 81]

合约在交易所的代码

§banding_upper_price: f64

上带价

§banding_lower_price: f64

下带价

Implementations§

Source§

impl DepthMarketDataField

Source

pub fn get_instrument_id(&self) -> CtpResult<String>

获取合约代码的UTF-8字符串

Source

pub fn get_exchange_id(&self) -> CtpResult<String>

获取交易所代码的UTF-8字符串

Trait Implementations§

Source§

impl Clone for DepthMarketDataField

Source§

fn clone(&self) -> DepthMarketDataField

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 DepthMarketDataField

Source§

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

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

impl Default for DepthMarketDataField

Source§

fn default() -> Self

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

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> Instrument for T

Source§

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

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

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.

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> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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