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
- Host: GitHub
- URL: https://github.com/nyurik/marketcodes
- Owner: nyurik
- Created: 2015-03-15T19:03:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T19:19:13.000Z (about 10 years ago)
- Last Synced: 2025-03-07T16:09:54.990Z (about 2 months ago)
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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,
...
}
```