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

41 lines
1.1 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 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
* Trades 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;
}