Enum MetatraderTrade.ActionType
- java.lang.Object
-
- java.lang.Enum<MetatraderTrade.ActionType>
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderTrade.ActionType
-
- All Implemented Interfaces:
Serializable,Comparable<MetatraderTrade.ActionType>
- Enclosing class:
- MetatraderTrade
public static enum MetatraderTrade.ActionType extends Enum<MetatraderTrade.ActionType>
Action type enum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ORDER_CANCELORDER_MODIFYORDER_TYPE_BUYORDER_TYPE_BUY_LIMITORDER_TYPE_BUY_STOPORDER_TYPE_SELLORDER_TYPE_SELL_LIMITORDER_TYPE_SELL_STOPPOSITION_CLOSE_IDPOSITION_MODIFYPOSITION_PARTIALPOSITIONS_CLOSE_SYMBOL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetatraderTrade.ActionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MetatraderTrade.ActionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORDER_TYPE_SELL
public static final MetatraderTrade.ActionType ORDER_TYPE_SELL
-
ORDER_TYPE_BUY
public static final MetatraderTrade.ActionType ORDER_TYPE_BUY
-
ORDER_TYPE_BUY_LIMIT
public static final MetatraderTrade.ActionType ORDER_TYPE_BUY_LIMIT
-
ORDER_TYPE_SELL_LIMIT
public static final MetatraderTrade.ActionType ORDER_TYPE_SELL_LIMIT
-
ORDER_TYPE_BUY_STOP
public static final MetatraderTrade.ActionType ORDER_TYPE_BUY_STOP
-
ORDER_TYPE_SELL_STOP
public static final MetatraderTrade.ActionType ORDER_TYPE_SELL_STOP
-
POSITION_MODIFY
public static final MetatraderTrade.ActionType POSITION_MODIFY
-
POSITION_PARTIAL
public static final MetatraderTrade.ActionType POSITION_PARTIAL
-
POSITION_CLOSE_ID
public static final MetatraderTrade.ActionType POSITION_CLOSE_ID
-
POSITIONS_CLOSE_SYMBOL
public static final MetatraderTrade.ActionType POSITIONS_CLOSE_SYMBOL
-
ORDER_MODIFY
public static final MetatraderTrade.ActionType ORDER_MODIFY
-
ORDER_CANCEL
public static final MetatraderTrade.ActionType ORDER_CANCEL
-
-
Method Detail
-
values
public static MetatraderTrade.ActionType[] 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 (MetatraderTrade.ActionType c : MetatraderTrade.ActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetatraderTrade.ActionType 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
-
-