Enum MetatraderPosition.PositionReason
- java.lang.Object
-
- java.lang.Enum<MetatraderPosition.PositionReason>
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderPosition.PositionReason
-
- All Implemented Interfaces:
Serializable,Comparable<MetatraderPosition.PositionReason>
- Enclosing class:
- MetatraderPosition
public static enum MetatraderPosition.PositionReason extends Enum<MetatraderPosition.PositionReason>
Position opening reason. See https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties#enum_position_reason
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POSITION_REASON_CLIENTPOSITION_REASON_EXPERTPOSITION_REASON_MOBILEPOSITION_REASON_UNKNOWNPOSITION_REASON_WEB
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetatraderPosition.PositionReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static MetatraderPosition.PositionReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSITION_REASON_CLIENT
public static final MetatraderPosition.PositionReason POSITION_REASON_CLIENT
-
POSITION_REASON_EXPERT
public static final MetatraderPosition.PositionReason POSITION_REASON_EXPERT
-
POSITION_REASON_MOBILE
public static final MetatraderPosition.PositionReason POSITION_REASON_MOBILE
-
POSITION_REASON_WEB
public static final MetatraderPosition.PositionReason POSITION_REASON_WEB
-
POSITION_REASON_UNKNOWN
public static final MetatraderPosition.PositionReason POSITION_REASON_UNKNOWN
-
-
Method Detail
-
values
public static MetatraderPosition.PositionReason[] 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 (MetatraderPosition.PositionReason c : MetatraderPosition.PositionReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetatraderPosition.PositionReason 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
-
-