An open API service indexing awesome lists of open source software.

https://github.com/nyurik/marketcodes

Automatically exported from code.google.com/p/marketcodes
https://github.com/nyurik/marketcodes

Last synced: about 1 month ago
JSON representation

Automatically exported from code.google.com/p/marketcodes

Awesome Lists containing this project

README

        

# Intro #

This project simplifies working with various constants used by financial firms. Each list is encoded as a .NET enum, with attributes used to provide additional information.

* [ISO 3166](http://goo.gl/qhbE) - Country codes (US, GB, RU) _[Official Site](http://goo.gl/4N1zl)_
* Name
* Primary country currency

* [ISO 4217](http://goo.gl/7LIxC) - Currency codes (USD, GBP, RUB) _[Official Site](http://goo.gl/WBSPI)_
* Name
* Number of significant decimals
* Symbols
* List of countries that use it

* [ISO 10383](http://goo.gl/ChIP) - MIC (market/exchange) codes (XNYS, XLON, XMIC). _[Official Site](http://goo.gl/zLsI)_
* Name
* Country
* Timezone string as used by `TimeZoneInfo` class
* Url

# Examples #

```

public enum CountryCode
{
/// United States
[D("United States"), I(C.USD)] US = 840,
...
}

public enum CurrencyCode
{
/// US Dollar
[Currency("US Dollar", 2, "$", "Cent[D]")]
[U(C.AS), U(C.EC), U(C.SV), U(C.GU), U(C.HT), U(C.MH), U(C.FM), U(C.MP), U(C.PW), U(C.PA), U(C.TC), U(C.US), U(C.VI)]
USD = 154,
...
}

public enum MarketCode
{
/// NEW YORK STOCK EXCHANGE, INC. [US] -- Active Before June 2005
[D("NEW YORK STOCK EXCHANGE, INC. [US]")]
[I("NEW YORK STOCK EXCHANGE, INC.", "NYSE", C.US, "Eastern Standard Time", "NEW YORK", "www.nyse.com")]
XNYS = 0x584E5953,
...
}
```