pub struct CachedTicker {
pub time: String,
pub sequence: i64,
pub dir: i32,
pub price: f64,
pub volume: i64,
pub turnover: f64,
pub recv_time: Option<f64>,
pub ticker_type: Option<i32>,
pub type_sign: Option<i32>,
pub push_data_type: Option<i32>,
pub timestamp: Option<f64>,
}Expand description
逐笔成交缓存 (对齐 C++ Qot_UpdateTicker::S2C)
v1.4.106 codex 1140 F5: 加 type_sign 字段 (audit Finding 5),
对齐 ftapi Qot_Common.Ticker.typeSign (proto field 9). 之前 cache 缺
此字段, push event 与 read response 都没法透传 type_sign.
Fields§
§time: String§sequence: i64§dir: i32§price: f64§volume: i64§turnover: f64§recv_time: Option<f64>§ticker_type: Option<i32>§type_sign: Option<i32>v1.4.106 codex 1140 F5: 逐笔类型符号 (audit Finding 5). 来自 TickItem.trade_type (一个英文字母的 ASCII 码), backend 推送 + FTAPI Ticker.typeSign 对外暴露给 UI.
push_data_type: Option<i32>§timestamp: Option<f64>Trait Implementations§
Source§impl Clone for CachedTicker
impl Clone for CachedTicker
Source§fn clone(&self) -> CachedTicker
fn clone(&self) -> CachedTicker
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 moreAuto Trait Implementations§
impl Freeze for CachedTicker
impl RefUnwindSafe for CachedTicker
impl Send for CachedTicker
impl Sync for CachedTicker
impl Unpin for CachedTicker
impl UnsafeUnpin for CachedTicker
impl UnwindSafe for CachedTicker
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