Expand description
STATION-side normalization over the RAW SymbolInfo core emits.
The core connector layer is raw + complete: get_exchange_info returns ALL
symbols with the venue-native status string verbatim ("online",
"Trading", "live", "tradable", "1", "active", …) and never
filters. The raw↔normalized boundary lives HERE, opt-in: a consumer that
wants a canonical status or an active-only universe calls these helpers; one
that wants the raw truth ignores them. Nothing here mutates or loses the raw
SymbolInfo — status/instrument_type/extra stay intact.
Enums§
- Symbol
Status - Canonical, exchange-agnostic trading status — a STATION normalization of the
many venue-native
statusstrings into one vocabulary. Opt-in; the rawSymbolInfo.statusis always still available for callers who want it.
Functions§
- active_
only - Opt-in active-only filter — keep only currently-
Tradingsymbols. This is the restriction core used to apply inline (and which we removed to keep core raw); it now lives here as a consumer choice. - canonical_
status - Map a raw
SymbolInfo’s nativestatusstring to aSymbolStatus. - is_
active - Borrowing variant — count/inspect without consuming.