Skip to main content

CachedBasicQot

Struct CachedBasicQot 

Source
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

Source§

fn clone(&self) -> CachedBasicQot

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CachedBasicQot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more