pub struct CachedBasicQot {Show 15 fields
pub cur_price: f64,
pub open_price: f64,
pub high_price: f64,
pub low_price: f64,
pub last_close_price: f64,
pub volume: i64,
pub turnover: f64,
pub turnover_rate: f64,
pub amplitude: f64,
pub is_suspended: bool,
pub update_time: String,
pub update_timestamp: f64,
pub overnight: Option<CachedPreAfterMarketData>,
pub pre_market: Option<CachedPreAfterMarketData>,
pub after_market: Option<CachedPreAfterMarketData>,
}Expand description
基本报价缓存
Fields§
§cur_price: f64§open_price: f64§high_price: f64§low_price: f64§last_close_price: f64§volume: i64§turnover: f64§turnover_rate: f64§amplitude: f64§is_suspended: bool§update_time: String§update_timestamp: f64§overnight: Option<CachedPreAfterMarketData>v1.4.72 BUG-006 L3 (eli v1.4.69 P1): US 夜盘 OHLCV 数据。 backend 推送(CMD 6212 Qot_UpdateBasicQot)的 BasicQot.overnight (field 25) 在夜盘时段会填充,regular hours 为 None。push_parser 提取并缓存,让 下游 subscribe push + snapshot query 都能看到实时夜盘数据。
pre_market: Option<CachedPreAfterMarketData>v1.4.106 codex 1140 F4 (P2): US 盘前 OHLCV 数据.
SBIT_US_PREMARKET_AFTERHOURS_DETAIL 推送时由 push_parser 解析填充, US
盘前时段会有, regular hours / non-US → None. 下游 read 透传给 ftapi
BasicQot.pre_market (proto Qot_Common.proto:671). audit Finding 4.
after_market: Option<CachedPreAfterMarketData>v1.4.106 codex 1140 F4 (P2): US 盘后 OHLCV 数据.
同上, 但取 SBIT_US_PREMARKET_AFTERHOURS_DETAIL 的 after_hours 字段.
下游 read 透传给 ftapi BasicQot.after_market. audit Finding 4.
Trait Implementations§
Source§impl Clone for CachedBasicQot
impl Clone for CachedBasicQot
Source§fn clone(&self) -> CachedBasicQot
fn clone(&self) -> CachedBasicQot
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 CachedBasicQot
impl RefUnwindSafe for CachedBasicQot
impl Send for CachedBasicQot
impl Sync for CachedBasicQot
impl Unpin for CachedBasicQot
impl UnsafeUnpin for CachedBasicQot
impl UnwindSafe for CachedBasicQot
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