pub struct TradeField {
pub instrument_id: String,
pub exchange_id: String,
pub order_sys_id: String,
pub trade_id: String,
pub direction: String,
pub offset_flag: String,
pub price: f64,
pub volume: f64,
pub trade_date: String,
pub trade_time: String,
}Expand description
成交行(CThostFtdcTradeField 窄面;td onRtnTrade 720-747 行实际取用字段)。
注意(原稿 741 与 708 的差异):成交行读 OffsetFlag(单偏移),委托行读
CombOffsetFlag(组合偏移);wire 分列如实保留。
Fields§
§instrument_id: String合约代码
exchange_id: String交易所代码(0.7.0:同 OrderField)
order_sys_id: String交易所报单编号(与 OrderData 的映射键)
trade_id: String成交编号(TradeID)
direction: String报单方向码(‘0’/‘1’)
offset_flag: String单偏移开平标志码(OF_*;原稿 741 行)
price: f64成交价格
volume: f64成交数量
trade_date: String成交日期(“YYYYMMDD”)
trade_time: String成交时间(“HH:MM:SS”)
Trait Implementations§
Source§impl Clone for TradeField
impl Clone for TradeField
Source§impl Debug for TradeField
impl Debug for TradeField
Source§impl Default for TradeField
impl Default for TradeField
Source§impl PartialEq for TradeField
impl PartialEq for TradeField
impl StructuralPartialEq for TradeField
Auto Trait Implementations§
impl Freeze for TradeField
impl RefUnwindSafe for TradeField
impl Send for TradeField
impl Sync for TradeField
impl Unpin for TradeField
impl UnsafeUnpin for TradeField
impl UnwindSafe for TradeField
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