pub struct InstrumentField {Show 15 fields
pub instrument_id: String,
pub exchange_id: String,
pub instrument_name: String,
pub product_class: String,
pub volume_multiple: f64,
pub price_tick: f64,
pub max_limit_order_volume: f64,
pub min_limit_order_volume: f64,
pub max_market_order_volume: f64,
pub min_market_order_volume: f64,
pub delivery_year: i64,
pub delivery_month: i64,
pub product_id: String,
pub is_trading: i64,
pub open_date: String,
}Expand description
合约行(CThostFtdcInstrumentField 窄面;td onRspQryInstrument 632-654 行
实际取用字段)。
原稿注记(619-631 行样例):合约行的 ExchangeID 是交易所真源;ProductClass
决定资产大类映射;ProductID 为品种代码。
Fields§
§instrument_id: String合约代码
exchange_id: String交易所代码(“CFFEX”/“SHFE”/“CZCE”/“DCE”/“INE”/“GFEX”)
instrument_name: String合约名称
product_class: String产品类码(THOST_FTDC_PC_*,map::asset_from 翻译)
volume_multiple: f64合约乘数(VolumeMultiple)
price_tick: f64最小价格变动(PriceTick)
max_limit_order_volume: f64限价单最大上量
min_limit_order_volume: f64限价单最小上量
max_market_order_volume: f64市价单最大上量
min_market_order_volume: f64市价单最小上量
delivery_year: i64交割年
delivery_month: i64交割月
product_id: String品种代码
is_trading: i64是否可交易(1/0)
open_date: String上市日(YYYYMMDD,空 = 柜台未给)。
合约表不提供涨跌停价 —— 那两个只在行情 DepthMarketData 里,
已由 TickData.limit_up/limit_down 承担。
Trait Implementations§
Source§impl Clone for InstrumentField
impl Clone for InstrumentField
Source§impl Debug for InstrumentField
impl Debug for InstrumentField
Source§impl Default for InstrumentField
impl Default for InstrumentField
Source§impl PartialEq for InstrumentField
impl PartialEq for InstrumentField
impl StructuralPartialEq for InstrumentField
Auto Trait Implementations§
impl Freeze for InstrumentField
impl RefUnwindSafe for InstrumentField
impl Send for InstrumentField
impl Sync for InstrumentField
impl Unpin for InstrumentField
impl UnsafeUnpin for InstrumentField
impl UnwindSafe for InstrumentField
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