Skip to content

dneto/oer-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 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("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/