Enum MetatraderOrder.OrderState
- java.lang.Object
-
- java.lang.Enum<MetatraderOrder.OrderState>
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderOrder.OrderState
-
- All Implemented Interfaces:
Serializable,Comparable<MetatraderOrder.OrderState>
- Enclosing class:
- MetatraderOrder
public static enum MetatraderOrder.OrderState extends Enum<MetatraderOrder.OrderState>
Order state. See https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_state
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetatraderOrder.OrderStatevalueOf(String name)Returns the enum constant of this type with the specified name.static MetatraderOrder.OrderState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORDER_STATE_STARTED
public static final MetatraderOrder.OrderState ORDER_STATE_STARTED
-
ORDER_STATE_PLACED
public static final MetatraderOrder.OrderState ORDER_STATE_PLACED
-
ORDER_STATE_CANCELED
public static final MetatraderOrder.OrderState ORDER_STATE_CANCELED
-
ORDER_STATE_PARTIAL
public static final MetatraderOrder.OrderState ORDER_STATE_PARTIAL
-
ORDER_STATE_FILLED
public static final MetatraderOrder.OrderState ORDER_STATE_FILLED
-
ORDER_STATE_REJECTED
public static final MetatraderOrder.OrderState ORDER_STATE_REJECTED
-
ORDER_STATE_EXPIRED
public static final MetatraderOrder.OrderState ORDER_STATE_EXPIRED
-
ORDER_STATE_REQUEST_ADD
public static final MetatraderOrder.OrderState ORDER_STATE_REQUEST_ADD
-
ORDER_STATE_REQUEST_MODIFY
public static final MetatraderOrder.OrderState ORDER_STATE_REQUEST_MODIFY
-
ORDER_STATE_REQUEST_CANCEL
public static final MetatraderOrder.OrderState ORDER_STATE_REQUEST_CANCEL
-
-
Method Detail
-
values
public static MetatraderOrder.OrderState[] 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.OrderState c : MetatraderOrder.OrderState.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.OrderState 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
-
-