#[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
impl DepthMarketDataField
Sourcepub fn get_instrument_id(&self) -> CtpResult<String>
pub fn get_instrument_id(&self) -> CtpResult<String>
获取合约代码的UTF-8字符串
Sourcepub fn get_exchange_id(&self) -> CtpResult<String>
pub fn get_exchange_id(&self) -> CtpResult<String>
获取交易所代码的UTF-8字符串
Trait Implementations§
Source§impl Clone for DepthMarketDataField
impl Clone for DepthMarketDataField
Source§fn clone(&self) -> DepthMarketDataField
fn clone(&self) -> DepthMarketDataField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DepthMarketDataField
impl Debug for DepthMarketDataField
Auto Trait Implementations§
impl Freeze for DepthMarketDataField
impl RefUnwindSafe for DepthMarketDataField
impl Send for DepthMarketDataField
impl Sync for DepthMarketDataField
impl Unpin for DepthMarketDataField
impl UnwindSafe for DepthMarketDataField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more