Skip to main content

Module industry

Module industry 

Source
Expand description

Build the symbol -> sector map the yuzu-core neutralization ops need, from the tracked/*.csv.gz snapshot (symbol,sector,market_cap).

Functions§

load_industry_map
Load tracked/universe.csv.gz (or .csv) from src into the symbol → sector map the engine’s industry ops consume. Ok(None) when the snapshot is absent or has no usable rows — the runner then leaves the map empty and industry ops treat every symbol as unmapped.
parse_industry_csv
Parse a symbol,sector,... CSV into symbol -> sector. A leading header row (symbol,...) is skipped; rows with an empty sector are dropped.