Skip to main content

Module normalize

Module normalize 

Source
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 SymbolInfostatus/instrument_type/extra stay intact.

Enums§

SymbolStatus
Canonical, exchange-agnostic trading status — a STATION normalization of the many venue-native status strings into one vocabulary. Opt-in; the raw SymbolInfo.status is always still available for callers who want it.

Functions§

active_only
Opt-in active-only filter — keep only currently-Trading symbols. 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 native status string to a SymbolStatus.
is_active
Borrowing variant — count/inspect without consuming.