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

com.oanda.fxtrade.api

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.

getPrice

Returns the order price.

double getPrice()

setTakeProfit

Sets the take profit for this order.

See Also: TakeProfitOrder

void setTakeProfit(TakeProfitOrder takeprofit)

Find more information about Order here