Skip to main content

parse_trd_market

Function parse_trd_market 

Source
pub fn parse_trd_market(raw: &str) -> Option<TrdMarket>
Expand description

Parse a user-facing trade market string into the canonical OpenAPI Trd_Common.TrdMarket enum.

Keep the alias table in futu-core; this function is the compatibility facade that converts the core-owned official integer into futu-trd’s enum. The parser intentionally accepts both labels and official enum integers.