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.

Order Interface


Interface Order

public interface Order

Order is an abstract base class encapsulating the basic components of an OANDA forex order.

Note that a sell order is indicated by specifying negative units.


Returns the order price.

double getPrice()


Sets the take profit for this order.

See Also: TakeProfitOrder

void setTakeProfit(TakeProfitOrder takeprofit)

Find more information about Order here