pub struct SecurityStaticInfo {
pub security: Security,
pub id: i64,
pub lot_size: i32,
pub sec_type: i32,
pub name: String,
pub list_time: String,
pub delisting: bool,
pub exch_type: i32,
}Expand description
股票静态信息
Fields§
§security: Security§id: i64§lot_size: i32§sec_type: i32§name: String§list_time: String§delisting: bool§exch_type: i32v1.4.93 P1-3 (BUG-5318-003): 透传 proto SecurityStaticBasic.exchType
(field 9). daemon 端 make_static_info 已用
derive_exch_type_with_fallback 把 cache miss / 历史 SQLite 行的
exch_type=0 通过 mkt_id 派生(含 US 期货 60-109 range NYMEX/COMEX/
CBOT/CME/CBOE). 这里只做透传; user-facing exchange_code 字符串
通过 Self::exchange_code() 派生.
Implementations§
Source§impl SecurityStaticInfo
impl SecurityStaticInfo
pub fn from_proto(info: &SecurityStaticInfo) -> Self
Sourcepub fn exchange_code(&self) -> Option<&'static str>
pub fn exchange_code(&self) -> Option<&'static str>
v1.4.93 P1-3 (BUG-5318-003): 派生 user-facing exchange code 字符串
(e.g. “CME”/“NYMEX”/“CBOT”/“CBOE”/“COMEX” for US 期货, “NYSE”/“Nasdaq”
for US 股, “HK_MainBoard”/“SH”/“SZ” 等). 见
futu_core::exch_type::exch_type_to_string 完整映射表.
返回 None 表示 Unknown(0) 或 ExchType 表外值, caller 一般
.map(String::from) 推送到 JSON / display.
Trait Implementations§
Source§impl Clone for SecurityStaticInfo
impl Clone for SecurityStaticInfo
Source§fn clone(&self) -> SecurityStaticInfo
fn clone(&self) -> SecurityStaticInfo
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 SecurityStaticInfo
impl RefUnwindSafe for SecurityStaticInfo
impl Send for SecurityStaticInfo
impl Sync for SecurityStaticInfo
impl Unpin for SecurityStaticInfo
impl UnsafeUnpin for SecurityStaticInfo
impl UnwindSafe for SecurityStaticInfo
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