pub async fn get_static_info(
__arg0: State<RestState>,
__arg1: Json<Value>,
) -> Result<Json<Value>, (StatusCode, Json<Value>)>Expand description
POST /api/static-info — 获取静态信息
v1.4.93 P1-3 (BUG-5318-003): 响应已经带 basic.exch_type: i32
(来自 daemon make_static_info). 这里再注入 basic.exchange_code: string
(e.g. “CME”) 派生自 futu_core::exch_type::exch_type_to_string.
v1.4.105 (eli FINAL-BUG-REPORT-v5 #5 P1): 显式空 code_list / security_list
早期 reject. 之前 [] 会 fall through 到 backend, backend 对“无 filter“
返全 universe (~28MB / 97964 条),客户端无法区分“账户无静态信息“和“我传错
了空 list 触发全集“。三态 (missing / null / explicit []) 必须区分:
- 缺 c2s 字段 → fall through 给 backend (允许 backend 用
market/secTypefilter) - explicit
[]→ 400 reject loud (避免 silent dump 全 universe) - 非空 list → 走 backend 正常路径