I have an application that has to convert dollar to euro and vice versa. Is there an interface or API I can use to grab the current exchange rate?
4 Answers
You can use Google Calculator, take a look at this example on how to use it ...

- 71,077
- 30
- 176
- 213
If you are not a fan of Google you can use Yahoo Converter as well.
They have the code there as well.

- 7,761
- 2
- 29
- 53
This site seems to offer the functionality you are looking for. But unfortunately it isn't free. This site offers a REST-style api, including historical conversion rates for non-profit use. To use it for your purpose, all you have to do is send a request to the following URL in the described format:
http://currencies.apps.grandtrunk.net/getlatest/EUR/USD
The list of supported currency codes include dollar and euro, among these others:
ATS, AUD, BEF, BGN, BRL, CAD, CHF, CNY, CYP, CZK, DEM, DKK, EEK, ESP, EUR, FIM, FRF, GBP, GRD, HKD, HRK, HUF, IDR, IEP, ILS, INR, ITL, JPY, KRW, LKR, LTL, LUF, LVL, MCF, MTL, MXN, MYR, NLG, NOK, NZD, PHP, PLN, PTE, RON, RUB, SEK, SGD, SIT, SKK, SML, THB, TRY, TWD, USD, VAL, VEB, VEF, ZAR

- 22,940
- 6
- 79
- 92
-
It's not free and why would one want to spend money when other free alternatives are available. I know you are just trying give a alternative. – RanRag May 22 '12 at 08:14
No Body sells data for free.If you want to have such functionality in your application and the information your going to fetch will be in customised way then you need pay some money
http://www.exchangerate-api.com/java-currency-api
or

- 2,931
- 8
- 28
- 53