Files
ATS_Esper/src/main/java/ats/orders/TrailingStopLossDetails.java

42 lines
1.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 Trades 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 Trades 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;
}