The JAVA SDK is deprecated

  • The OANDA v1 REST API will cease to function for your account as early as May 2018.
  • Please migrate your applications to use the v20 REST API. A Java wrapper is available in the sample code section.

Rates Interface


Interface RateTable

public interface RateTable

The RateTable object holds all incoming rate information. A ratetable is used to obtain rate info (quotes for currency pairs) and history data for these as well.


Retrieves all pairs both tradeable and non-tradable with respect to a home currency.


homeCurrency: a home currencies for which to retrieve symbols

Returns: collection of pairs Throws: RateTableException

java.util.Collection<FXPair> getAllSymbols(java.lang.String homeCurrency) throws RateTableException


Returns the most recent FXTick for the given FXPair without ladder markup.


pair: the FXPair to retrieve using no ladder

Returns: the most recent FXTick Throws: RateTableException

See Also: FXTick, FXPair

FXTick getRate(FXPair pair) throws RateTableException

Find more information about Rate here