Skip to main content

entry_by_code_prefix

Function entry_by_code_prefix 

Source
pub fn entry_by_code_prefix(code: &str) -> Option<&'static MarketDispatchEntry>
Expand description

Stable API (since v1.4.69) — 查 code prefix 对应的 entry(含 CN. 特殊分派)。

CN. 按 code 首数字判 SH(31) vs SZ(32):

  • 6 / 9 → SH entry (sec_market=31)
  • 0 / 2 / 3 → SZ entry (sec_market=32)
  • 其他 → SH entry(default)