Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java client for Open Exchange Rates(http://www.openexchangerates.org/).
Java CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
src
.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.getClient();
        BigDecimal BRLValue = oer.getCurrencyValue(Currency.BRL);
        System.out.println(BRLValue);
    }
}

For more information about this API see the documentation

Something went wrong with that request. Please try again.