pub struct TickData {Show 15 fields
pub market: Option<String>,
pub symbol: String,
pub date: String,
pub raw_qmt_timestamp: u32,
pub market_phase_status: u32,
pub last_price: Option<f64>,
pub last_close: f64,
pub amount: Option<f64>,
pub volume: Option<u64>,
pub ask_prices: [Option<f64>; 5],
pub ask_vols: [Option<u32>; 5],
pub bid_prices: [Option<f64>; 5],
pub bid_vols: [Option<u32>; 5],
pub qmt_status_field_1_raw: u32,
pub qmt_status_field_2_raw: u32,
}Expand description
单条 Tick 分笔记录。
Fields§
§market: Option<String>从路径推导出的市场代码,如 SH、SZ、BJ。
symbol: String证券代码。
date: String交易日,格式为 YYYYMMDD。
raw_qmt_timestamp: u32QMT 文件中的原始时间戳字段。
market_phase_status: u32市场阶段状态字段。
last_price: Option<f64>最新成交价。
last_close: f64昨收价。
amount: Option<f64>成交额。
volume: Option<u64>成交量。
ask_prices: [Option<f64>; 5]卖一到卖五价格。
ask_vols: [Option<u32>; 5]卖一到卖五挂单量。
bid_prices: [Option<f64>; 5]买一到买五价格。
bid_vols: [Option<u32>; 5]买一到买五挂单量。
qmt_status_field_1_raw: u32QMT 原始状态字段 1。
qmt_status_field_2_raw: u32QMT 原始状态字段 2。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TickData
impl RefUnwindSafe for TickData
impl Send for TickData
impl Sync for TickData
impl Unpin for TickData
impl UnsafeUnpin for TickData
impl UnwindSafe for TickData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more