Enum CoinmateOrderFlags
- java.lang.Object
-
- java.lang.Enum<CoinmateOrderFlags>
-
- org.knowm.xchange.coinmate.dto.trade.CoinmateOrderFlags
-
- All Implemented Interfaces:
Serializable
,Comparable<CoinmateOrderFlags>
,Order.IOrderFlags
public enum CoinmateOrderFlags extends Enum<CoinmateOrderFlags> implements Order.IOrderFlags
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_ORDER_ID
Id of order used to access order in case of not receiving order idHIDDEN
Flag indicating that order should be created as hidden.IMMEDIATE_OR_CANCEL
In case the flag is set: if limit order is not fully settled immediately the remaining part of the order is cancelled at the end of request.STOP
Stop loss price.TRAILING
Flag indicating that stop loss order should be created as trailing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoinmateOrderFlags
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoinmateOrderFlags[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOP
public static final CoinmateOrderFlags STOP
Stop loss price.
-
HIDDEN
public static final CoinmateOrderFlags HIDDEN
Flag indicating that order should be created as hidden.
-
IMMEDIATE_OR_CANCEL
public static final CoinmateOrderFlags IMMEDIATE_OR_CANCEL
In case the flag is set: if limit order is not fully settled immediately the remaining part of the order is cancelled at the end of request.
-
TRAILING
public static final CoinmateOrderFlags TRAILING
Flag indicating that stop loss order should be created as trailing. Valid flag value is 0 or 1. Default value is 0
-
CLIENT_ORDER_ID
public static final CoinmateOrderFlags CLIENT_ORDER_ID
Id of order used to access order in case of not receiving order id
-
-
Method Detail
-
values
public static CoinmateOrderFlags[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoinmateOrderFlags c : CoinmateOrderFlags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoinmateOrderFlags valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-