#finance #financial-data #sic #naics #mic

fin_data

Registry implementations for common financial categories

3 releases

0.1.2 Jul 23, 2019
0.1.1 Jul 21, 2019
0.1.0 Jul 19, 2019

#169 in Value formatting

Download history 32/week @ 2024-02-19 7/week @ 2024-02-26 8/week @ 2024-03-11 67/week @ 2024-04-01

75 downloads per month
Used in fin_iex

MIT license

2.5MB
52K SLoC

Crate fin_data

This is an implementation of the ClassificationScheme trait (from the fin_model crate) for the UK Standard industrial classification of economic activities (UK SIC), the US Standard Industrial Classification (US SIC) codes as well as the North American Industry Classification System (NAICS). It also provides an implementation of the MarketRegistry trait for Market Identifier Code (MIC) data provided by ISO.

Modules

Example

fn print_mic_code(code: String) {
    let registry: ISORegistry = ISORegistry::new();
    match registry.get(code.to_string()) {
        None => println!("No value found for code {}", code),
        Some(m) => println!("{}: {} ({})", code, m.description, m.country_code),
    }
}

Dependencies

~3–4.5MB
~76K SLoC