Enum MetatraderOrder.OrderType
- java.lang.Object
-
- java.lang.Enum<MetatraderOrder.OrderType>
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderOrder.OrderType
-
- All Implemented Interfaces:
Serializable,Comparable<MetatraderOrder.OrderType>
- Enclosing class:
- MetatraderOrder
public static enum MetatraderOrder.OrderType extends Enum<MetatraderOrder.OrderType>
Order type. See https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ORDER_TYPE_BUYORDER_TYPE_BUY_LIMITORDER_TYPE_BUY_STOPORDER_TYPE_BUY_STOP_LIMITORDER_TYPE_CLOSE_BYORDER_TYPE_SELLORDER_TYPE_SELL_LIMITORDER_TYPE_SELL_STOPORDER_TYPE_SELL_STOP_LIMIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetatraderOrder.OrderTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MetatraderOrder.OrderType[]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 MetatraderOrder.OrderType ORDER_TYPE_SELL
-
ORDER_TYPE_BUY
public static final MetatraderOrder.OrderType ORDER_TYPE_BUY
-
ORDER_TYPE_BUY_LIMIT
public static final MetatraderOrder.OrderType ORDER_TYPE_BUY_LIMIT
-
ORDER_TYPE_SELL_LIMIT
public static final MetatraderOrder.OrderType ORDER_TYPE_SELL_LIMIT
-
ORDER_TYPE_BUY_STOP
public static final MetatraderOrder.OrderType ORDER_TYPE_BUY_STOP
-
ORDER_TYPE_SELL_STOP
public static final MetatraderOrder.OrderType ORDER_TYPE_SELL_STOP
-
ORDER_TYPE_BUY_STOP_LIMIT
public static final MetatraderOrder.OrderType ORDER_TYPE_BUY_STOP_LIMIT
-
ORDER_TYPE_SELL_STOP_LIMIT
public static final MetatraderOrder.OrderType ORDER_TYPE_SELL_STOP_LIMIT
-
ORDER_TYPE_CLOSE_BY
public static final MetatraderOrder.OrderType ORDER_TYPE_CLOSE_BY
-
-
Method Detail
-
values
public static MetatraderOrder.OrderType[] 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 (MetatraderOrder.OrderType c : MetatraderOrder.OrderType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetatraderOrder.OrderType 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
-
-