Skip to content

johnwatts/oer-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.getClient();
		BigDecimal BRLValue = oer.getCurrencyValue(Currency.BRL);
		System.out.println(BRLValue);
	}
}

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