pub struct DbStockItem {Show 23 fields
pub stock_id: u64,
pub sequence: u64,
pub code: String,
pub name_sc: String,
pub name_tc: String,
pub name_en: String,
pub name_jp: String,
pub market_code: u32,
pub instrument_type: u32,
pub spread_table_code: u32,
pub sub_instrument_type_v2: u32,
pub lot_size: u32,
pub delisting: bool,
pub warrnt_stock_owner: u64,
pub warrant_type: u32,
pub no_search: bool,
pub listing_date: u32,
pub future_origin_id: u64,
pub zhuli_id: u64,
pub cc_origin: String,
pub cc_destination: String,
pub exchange: String,
pub listed_exchange: String,
}Expand description
存储在 SQLite 中的股票信息
Fields§
§stock_id: u64§sequence: u64C++ security.sequence; required for CMD6746 seq_check_sum_v2 parity.
code: String§name_sc: String§name_tc: Stringstock_list_sync CSStockItem.tc_name field 5.
name_en: Stringstock_list_sync CSStockItem.eng_name field 9.
name_jp: Stringstock_list_sync CSStockItem.ja_name field 65.
market_code: u32§instrument_type: u32§spread_table_code: u32stock_list_sync CSStockItem.spread_table_code field 13.
Required by GetSecuritySnapshot.priceSpread to mirror C++
INNBiz_Qot_Spread::AdjustPrice.
sub_instrument_type_v2: u32stock_list_sync CSStockItem.sub_instrument_type_v2 field 69.
Required by v10.6 GetCompanyProfile to mirror C++
APIServer_Qot_CompanyProfile.cpp:55-63 Trust-vs-ETF branch.
lot_size: u32§delisting: bool§warrnt_stock_owner: u64§warrant_type: u32C++ internal NN_QotWarrantType, stock-list warrnt_type.
Values 6/7 are DLC Long/Short and are filtered from GetReference(WARRANT).
no_search: bool§listing_date: u32§future_origin_id: u64v1.4.106 codex F5: 期货主连合约关联 stock_id (proto field 41 origin_id). schema version 2 加. 老 row 默认 0.
zhuli_id: u64v1.4.106 codex F5: 期货主力合约 stock_id (proto field 40 zhuli_id). schema version 2 加. 老 row 默认 0.
cc_origin: StringCrypto 货币对左侧货币 (stock_list_sync cc_origin, proto field 60).
cc_destination: StringCrypto 货币对右侧货币 (stock_list_sync cc_destination, proto field 61).
exchange: Stringv1.4.110 final E.5 P2#6: 交易所 (proto field 57). schema v4 加.
listed_exchange: Stringv1.4.110 final E.5 P2#6: 上市交易所 (proto field 74). schema v4 加.
Trait Implementations§
Source§impl Clone for DbStockItem
impl Clone for DbStockItem
Source§fn clone(&self) -> DbStockItem
fn clone(&self) -> DbStockItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more