This package contains an implementation of the ISO 10383 Securities and related financial instruments — Codes for exchanges and market identification (MIC) specification.
ISO 10383 specifies a universal method of identifying exchanges, trading platforms, regulated or non-regulated markets and trade reporting facilities as sources of prices and related information in order to facilitate automated processing.
It is intended for use in any application and communication for identification of places
Note that field descriptions are taken from ISO 10383 Market Identifier Codes - Release 2.0 Factsheet.
For notes on the design of the API, see the repository README.
```rust use codesiso10383::{Category, MarketIdCode, Status};
let market = MarketIdCode::XNCM; asserteq!(market.operatingcode(), Some(MarketIdCode::XNAS)); asserteq!(market.issegment(), true); asserteq!(market.marketname(), "NASDAQ CAPITAL MARKET"); asserteq!(market.status(), Status::Active); asserteq!(market.marketcategorycode(), Some(Category::NSPD)); ```
By default only the serde feature is enabled, the [MarketIdCode::code] and
[MarketIdCode::operatingcode], and [MarketIdCode::issegment] methods cannot be excluded.
serde - Enables serialization of the [MarketIdCode] type.market_name - Adds the [MarketIdCode::market_name] method.location - Adds the [MarketIdCode::country_code] and [MarketIdCode::city] methods.legal_entity - Adds the [MarketIdCode::legalentityid] and [MarketIdCode::legalentityname] methods.real_url - Uses theUrltype from theurl` crate for the [MarketIdCode::website_url] method.dates - Adds the [MarketIdCode::creationdate], [MarketIdCode::lastupdatedate], [MarketIdCode::lastvalidationdate], and [MarketIdCode::expirationdate] methods.real_dates - Used the DateTime<Utc> types from the chrono crate for date functions Work In Progresscomments - Adds the [MarketIdCode::comments] method.Version 0.1.5
country_code and website_url.Version 0.1.4
Version 0.1.3
codes-common CSV handling framework.Version 0.1.2
ALL_CODES constant.Version 0.1.1
codes-commonCode trait and macro-created implementation.Version 0.1.0
TBD