/oer-java

Java client for Open Exchange Rates(http://www.openexchangerates.org/).

Primary LanguageJavaApache License 2.0Apache-2.0

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/