Java client for Open Exchange Rates(http://www.openexchangerates.org/).
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/org/openexchangerates/oerjava
.gitignore
LICENSE.txt
README.md
pom.xml

README.md

Open Exchange Rates Java Client (oer-java)

Open-source Java Client for Open Exchange Rates.

##About Open Exchange Rates## Open Exchange Rates is a free, hourly-updating API that provides rates for about 120 currencies using USD as base.

For more information about Open Exchange Rates see:

##How to Use##

For example let's get the latest rates from BRL(Brazilian Real):

import java.math.BigDecimal;
import org.openexchangerates.oerjava.Currency;
import org.openexchangerates.oerjava.OpenExchangeRates;

public class BRLRate {
	public static void main(String[] args) {
		OpenExchangeRates oer = OpenExchangeRates("YOUR_APP_ID_HERE");
		BigDecimal BRLValue = oer.getCurrencyValue("BRL");
		System.out.println(BRLValue);
	}
}

For more information about this API see the [documentation][4] [4]:http://dneto.github.com/oer-java/documentation/