Android - 如何检索货币汇率
我正在尝试为 Android 开发一个简单的外汇应用程序。 首先,我需要获取过去一年的货币汇率。
有人可以建议我该怎么做吗? 我查看了 Google Financh API,但找不到如何检索货币汇率。 任何建议表示赞赏。
谢谢。
I'm trying to develop a simple Forex app for Android.
To start off, I need to get the currency exchange rates, say for the past year.
Could anybody advice how I can go about this?
I looked in Google financh API but couldn't find how to retrieve currency rates.
Any advice is appreciated.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以解析来自美联储的数据。它具有按国家/地区分开的历史数据。您可以在此处找到链接:
http://www.federalreserve.gov/releases/h10/Hist /
数据以普通 ascii 格式给出,使其非常易于解析。
You can parse the data from the federal reserve. It has historical data separated by country. You can find the link here:
http://www.federalreserve.gov/releases/h10/Hist/
Data is given in plain ascii, making it very easy to parse.
您可以访问一些外汇公司 API,并访问一系列货币对的实时和历史数据。
Oanda 提供 API :http://fxtrade.oanda.com/trade-forex/api/
盈透证券还提供了一个:http://www .interactivebrokers.com/en/p.php?f=programInterface&p=
XE 有数据馈送服务:http://www.xe.com/ict/
CurrencyFreaks 提供 179 种货币的最新汇率:https://currencyfreaks.com/
You could access some Foreign Exchange company APIs and get access to realtime and historical data of a range of currency pairs.
Oanda provide an API : http://fxtrade.oanda.com/trade-forex/api/
Interactive Brokers provide one also : http://www.interactivebrokers.com/en/p.php?f=programInterface&p=
XE have a data feed service: http://www.xe.com/ict/
CurrencyFreaks provides latest exchange rate for 179 currencies: https://currencyfreaks.com/