41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package ats.orders;
|
||
|
||
import org.joda.time.DateTime;
|
||
|
||
/**
|
||
* TakeProfitDetails specifies the details of a Take Profit Order to
|
||
* be created on behalf of a client. This may happen when an Order is
|
||
* filled that opens a Trade requiring a Take Profit, or when a
|
||
* Trade’s dependent Take Profit Order is modified directly through
|
||
* the Trade.
|
||
*
|
||
* @see <a href="https://developer.oanda.com/rest-live-v20/transaction-df/#TakeProfitDetails">OANDA API docs</a>
|
||
*/
|
||
public class TakeProfitDetails {
|
||
|
||
/**
|
||
* The price that the Take Profit Order will be triggered
|
||
* at. Only one of the price and distance fields may be
|
||
* specified.
|
||
*/
|
||
public String price;
|
||
|
||
/**
|
||
* The time in force for the created Take Profit Order. This
|
||
* may only be GTC, GTD or GFD. Default is GTC.
|
||
*/
|
||
public TimeInForce timeInForce = TimeInForce.GTC;
|
||
|
||
/**
|
||
* The date when the Take Profit Order will be cancelled on if
|
||
* timeInForce is GTD.
|
||
*/
|
||
public DateTime gtdTime;
|
||
|
||
/**
|
||
* The Client Extensions to add to the Take Profit Order when
|
||
* created.
|
||
*/
|
||
public ClientExtensions clientExtensions;
|
||
}
|