问题
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