Android - How to retrieve currency exchange rates [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-12-21 05:04:23

问题


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.


回答1:


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.




回答2:


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/



来源:https://stackoverflow.com/questions/4536689/android-how-to-retrieve-currency-exchange-rates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!