struct SnapshotJson {Show 28 fields
symbol: String,
market: i32,
code: String,
name: String,
sec_type: i32,
lot_size: i32,
is_suspend: bool,
list_time: String,
update_time: String,
cur_price: f64,
last_close_price: f64,
change_pct: f64,
open_price: f64,
high_price: f64,
low_price: f64,
volume: i64,
turnover: f64,
turnover_rate: f64,
ask_price: Option<f64>,
bid_price: Option<f64>,
ask_vol: Option<i64>,
bid_vol: Option<i64>,
amplitude: Option<f64>,
avg_price: Option<f64>,
volume_ratio: Option<f64>,
highest52_weeks_price: Option<f64>,
lowest52_weeks_price: Option<f64>,
exchange_code: Option<String>,
}Fields§
§symbol: String§market: i32§code: String§name: String§sec_type: i32§lot_size: i32§is_suspend: bool§list_time: String§update_time: String§cur_price: f64§last_close_price: f64§change_pct: f64§open_price: f64§high_price: f64§low_price: f64§volume: i64§turnover: f64§turnover_rate: f64§ask_price: Option<f64>§bid_price: Option<f64>§ask_vol: Option<i64>§bid_vol: Option<i64>§amplitude: Option<f64>§avg_price: Option<f64>§volume_ratio: Option<f64>§highest52_weeks_price: Option<f64>§lowest52_weeks_price: Option<f64>§exchange_code: Option<String>v1.4.93 P1-3 (BUG-5318-003): exchange_code 派生自 SecurityStaticInfo
(e.g. “CME”/“NYMEX”/“CBOT”/“CBOE”/“COMEX”/“NYSE”/“Nasdaq”). snapshot
proto 自身不带 exch_type, 所以 CLI 在 snapshot 之外额外调一次
get_static_info (per-symbol round trip) 拿到 exch_type 后映射.
null = daemon exch_type=0 且 mkt_id 未在表中.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotJson
impl RefUnwindSafe for SnapshotJson
impl Send for SnapshotJson
impl Sync for SnapshotJson
impl Unpin for SnapshotJson
impl UnsafeUnpin for SnapshotJson
impl UnwindSafe for SnapshotJson
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