36 lines
803 B
Java
36 lines
803 B
Java
package ats.orders;
|
|
|
|
/**
|
|
* The time-in-force of an Order. TimeInForce describes how long
|
|
* an Order should remain pending before being automatically
|
|
* cancelled by the execution system.
|
|
*
|
|
* @see <a href="https://developer.oanda.com/rest-live-v20/order-df/#TimeInForce">OANDA API docs</a>
|
|
*/
|
|
public enum TimeInForce {
|
|
/**
|
|
* The Order is “Good unTil Cancelled”
|
|
*/
|
|
GTC,
|
|
|
|
/**
|
|
* The Order is “Good unTil Date” and will be cancelled at the provided time
|
|
*/
|
|
GTD,
|
|
|
|
/**
|
|
* The Order is “Good For Day” and will be cancelled at 5pm New York time
|
|
*/
|
|
GFD,
|
|
|
|
/**
|
|
* The Order must be immediately “Filled Or Killed”
|
|
*/
|
|
FOK,
|
|
|
|
/**
|
|
* The Order must be “Immediatedly paritally filled Or Cancelled”
|
|
*/
|
|
IOC
|
|
};
|