42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package ats.orders;
|
||
|
||
import java.math.BigDecimal;
|
||
|
||
import org.joda.time.DateTime;
|
||
|
||
/**
|
||
* TrailingStopLossDetails specifies the details of a Trailing
|
||
* Stop Loss Order to be created on behalf of a client. This may
|
||
* happen when an Order is filled that opens a Trade requiring a
|
||
* Trailing Stop Loss, or when a Trade’s dependent Trailing Stop
|
||
* Loss Order is modified directly through the Trade.
|
||
*
|
||
* @see <a href="https://developer.oanda.com/rest-live-v20/transaction-df/#TrailingStopLossDetails">OANDA API docs</a>
|
||
*/
|
||
public class TrailingStopLossDetails {
|
||
/**
|
||
* The distance (in price units) from the Trade’s fill price
|
||
* that the Trailing Stop Loss Order will be triggered at.
|
||
*/
|
||
public BigDecimal distance;
|
||
|
||
/**
|
||
* The time in force for the created Trailing Stop Loss
|
||
* Order. This may only be GTC, GTD or GFD. The default is
|
||
* GTC.
|
||
*/
|
||
public TimeInForce timeInForce = TimeInForce.GTC;
|
||
|
||
/**
|
||
* The date when the Trailing Stop Loss Order will be
|
||
* cancelled on if timeInForce is GTD.
|
||
*/
|
||
public DateTime gtdTime;
|
||
|
||
/**
|
||
* The Client Extensions to add to the Trailing Stop Loss Order when
|
||
* created.
|
||
*/
|
||
public ClientExtensions clientExtensions;
|
||
}
|