数据库:按国家/地区代码划分的货币?

发布于 2025-01-08 18:34:51 字数 494 浏览 3 评论 0原文

在哪里可以获得货币列表以及国家/地区代码?

示例

Code,    Currency Name,  Country,    Format,     Decimal Points,     Currency Regime,    Major Unit,     Minor Unit,     Equivalence,
USD,    US Dollar,  United States,  $#,###.##,  2,  float,  dollar, cents,  100 cents = dollar

参考: http://www.oanda.com/currency/currency-code? srccont=rightnav

<--- 这很完美,但是他们不提供数据库下载?

Where do I get a list of currencies along with country code?

Example

Code,    Currency Name,  Country,    Format,     Decimal Points,     Currency Regime,    Major Unit,     Minor Unit,     Equivalence,
USD,    US Dollar,  United States,  $#,###.##,  2,  float,  dollar, cents,  100 cents = dollar

REF: http://www.oanda.com/currency/currency-code?srccont=rightnav

<--- this is perfect, however they do not supply a database to download?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

倾听心声的旋律 2025-01-15 18:34:51

您可以从 http://country.io/currency.json 获取国家/地区代码与货币代码的列表。这是一个示例摘录:

...
"US": "USD",
"UY": "UYU",
"UZ": "UZS",
"VA": "EUR",
"VC": "XCD",
...

You can get a list of country codes to currency codes from http://country.io/currency.json. Here's a sample extract:

...
"US": "USD",
"UY": "UYU",
"UZ": "UZS",
"VA": "EUR",
"VC": "XCD",
...
瞎闹 2025-01-15 18:34:51

调用此处提供的 Web 服务:http://www.webservicex.net/country.asmx 您应该能够生成你想要的列表。

Calling the web services provided here: http://www.webservicex.net/country.asmx you should be able to generate the list you want.

阳光下慵懒的猫 2025-01-15 18:34:51

如果没有数据库,您可以在 System.Globalization 中找到这些信息,

看看这个示例:
https://rextester.com/OEPYQ59630

Without a database, you can find those info in System.Globalization

Take a look at this sample:
https://rextester.com/OEPYQ59630

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文