Skip to main content

Module qot_symbol_list

Module qot_symbol_list 

Source
Expand description

Stable API — proto-free QOT list input validation and stock-id resolution rules. Proto-free QOT list input validation and stock-id resolution contract.

This module owns the fail-closed semantics for list-style QOT requests: empty list, invalid (market, code), or any unresolved stock id rejects the entire request. Runtime crates adapt their protocol/cache types into these plain facts before applying the rule.

Structs§

ParsedQotSymbolList
A non-empty list of QOT securities that passed basic input validation.
QotSymbolListSecurity
Plain QOT security fact used by list validation without depending on futu-proto.

Functions§

parse_required_symbol_list
Validate a list-style QOT input. The rule is intentionally shallow and proto-free: non-empty list, market != 0, non-empty code, and bounded code length. Market support and stock-id resolution stay in later runtime/cache phases.
resolve_required_stock_ids
Resolve all validated securities to stock ids. Any missing or zero stock id rejects the entire request, matching the audited fail-closed behavior for list-style QOT handlers.