Enum ExpirationOptions.ExpirationType
- java.lang.Object
-
- java.lang.Enum<ExpirationOptions.ExpirationType>
-
- cloud.metaapi.sdk.clients.meta_api.models.ExpirationOptions.ExpirationType
-
- All Implemented Interfaces:
Serializable,Comparable<ExpirationOptions.ExpirationType>
- Enclosing class:
- ExpirationOptions
public static enum ExpirationOptions.ExpirationType extends Enum<ExpirationOptions.ExpirationType>
Type pending order expiration type. See https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_type_time for more details. MetaTrader4 platform supports only ORDER_TIME_SPECIFIED expiration type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ORDER_TIME_DAYORDER_TIME_GTCORDER_TIME_SPECIFIEDORDER_TIME_SPECIFIED_DAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpirationOptions.ExpirationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ExpirationOptions.ExpirationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORDER_TIME_GTC
public static final ExpirationOptions.ExpirationType ORDER_TIME_GTC
-
ORDER_TIME_DAY
public static final ExpirationOptions.ExpirationType ORDER_TIME_DAY
-
ORDER_TIME_SPECIFIED
public static final ExpirationOptions.ExpirationType ORDER_TIME_SPECIFIED
-
ORDER_TIME_SPECIFIED_DAY
public static final ExpirationOptions.ExpirationType ORDER_TIME_SPECIFIED_DAY
-
-
Method Detail
-
values
public static ExpirationOptions.ExpirationType[] 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 (ExpirationOptions.ExpirationType c : ExpirationOptions.ExpirationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExpirationOptions.ExpirationType 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
-
-