| Crates.io | fin_data |
| lib.rs | fin_data |
| version | 0.1.2 |
| created_at | 2019-07-19 15:20:10.171148+00 |
| updated_at | 2019-07-23 18:43:41.943255+00 |
| description | Registry implementations for common financial categories. |
| homepage | |
| repository | https://github.com/johnstonskj/rust-financial.git |
| max_upload_size | |
| id | 150145 |
| size | 2,239,580 |
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.
::classifiers::uk_sic the UK Standard industrial classification of
economic activities
scheme.::classifiers::us_sic the US Standard Industrial Classification
(SIC) scheme.::classifiers::naics the North American Industry Classification System
(NAICS) scheme.::markets an implementation of MarketRegistry to surface data from the
ISO 10383 - Market Identifier Code
standard for market codes.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),
}
}