Skip to main content

SnapshotOut

Struct SnapshotOut 

Source
struct SnapshotOut {
Show 27 fields symbol: String, name: Option<String>, update_time: String, cur_price: f64, last_close: f64, change_rate: f64, open: f64, high: f64, low: f64, volume: i64, turnover: f64, turnover_rate: f64, amplitude: Option<f64>, avg_price: Option<f64>, volume_ratio: Option<f64>, highest52: Option<f64>, lowest52: Option<f64>, ask_price: Option<f64>, bid_price: Option<f64>, is_suspend: bool, lot_size: i32, overnight: Option<OvernightOut>, exchange_code: Option<String>, option_greeks: Option<OptionGreeksOut>, equity_fundamental: Option<EquityFundamentalOut>, warrant_data: Option<WarrantDataOut>, future_data: Option<FutureDataOut>,
}

Fields§

§symbol: String§name: Option<String>§update_time: String§cur_price: f64§last_close: f64§change_rate: f64§open: f64§high: f64§low: f64§volume: i64§turnover: f64§turnover_rate: f64§amplitude: Option<f64>§avg_price: Option<f64>§volume_ratio: Option<f64>§highest52: Option<f64>§lowest52: Option<f64>§ask_price: Option<f64>§bid_price: Option<f64>§is_suspend: bool§lot_size: i32§overnight: Option<OvernightOut>

v1.4.72 BUG-006 L4 (eli v1.4.69 P1): US 夜盘 overnight OHLCV 数据。 仅 US 股票在夜盘时段有值。其他市场 / regular hours → None。 对齐 proto SnapshotBasicData.overnight (field 42)。

§exchange_code: Option<String>

v1.4.93 P1-3 (BUG-5318-003): exchange_code (e.g. “CME”/“NYMEX”/“NYSE”). snapshot proto 自身不带 exch_type 字段, MCP handler 在 snapshot 之外 额外调一次 get_static_info 获取. null (字段省略) = unknown. 见 futu_core::exch_type::exch_type_to_string 完整映射表.

§option_greeks: Option<OptionGreeksOut>

v1.4.94 Tier M3 (mobile-driven extension): 期权希腊字母 + IV + 溢价 + open interest. 仅期权 symbol 有此字段 (snapshot proto option_ex_data); 普通股 / 期货 / 基金等 → None.

来源: OpenD Qot_Common.proto OptionSnapshotExData (字段 8-13). 之前 MCP get_snapshot 只返 basic OHLC, 期权用户必须自己 subscribe + parse OptionBasicQotExData (复杂). v1.4.94 直接在 snapshot response 里返.

§equity_fundamental: Option<EquityFundamentalOut>

v1.4.98 T1-2 (mobile-source-audit Phase 2): 正股 fundamental 字段 (PE / PB / EPS / 股息 / NAV / 市值 / 流通股本 等 16 字段). 仅 equity symbol 有. 来源: Qot_GetSecuritySnapshot.proto EquitySnapshotExData. LLM agent fundamental analysis 必备 (选股 / 估值 / 股息策略).

§warrant_data: Option<WarrantDataOut>

v1.4.98 T1-2: 港股 warrant / CBBC / 牛熊证 字段 (delta / IV / premium / 换股比率 / 街货 / 杠杆 等 19 字段). 仅 HK warrant 有. 来源: Qot_GetSecuritySnapshot.proto WarrantSnapshotExData.

§future_data: Option<FutureDataOut>

v1.4.98 T1-2: 期货特有字段 (昨结 / 持仓量 / 日增仓 / 主连标识). 仅 future symbol 有. 来源: FutureSnapshotExData. 期货 trader momentum 信号必看.

Trait Implementations§

Source§

impl Serialize for SnapshotOut

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

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