pub struct CachedTicker {Show 17 fields
pub time: String,
pub sequence: i64,
pub dir: i32,
pub price: f64,
pub volume: i64,
pub hp_volume: f64,
pub no_price: Option<f64>,
pub event_contract_direction: Option<i32>,
pub backend_strategy: Option<u32>,
pub backend_order_type: Option<u64>,
pub backend_hp_turnover: Option<f64>,
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§hp_volume: f64§no_price: Option<f64>C++ QotRealTimeData::AddTickerData / NNBiz_Qot_PullQot::OnReply
retain the event-contract price and direction beside the legacy ticker
price. The legacy public Qot_Common.Ticker has no matching fields, so
this metadata remains typed cache state for event-contract consumers.
event_contract_direction: Option<i32>§backend_strategy: Option<u32>§backend_order_type: Option<u64>§backend_hp_turnover: Option<f64>§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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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