Enum CancelType
- java.lang.Object
-
- java.lang.Enum<CancelType>
-
- com.bybit.api.client.domain.trade.CancelType
-
- All Implemented Interfaces:
Serializable,Comparable<CancelType>
public enum CancelType extends Enum<CancelType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL_ALL_BEFORE_ADLCANCEL_ALL_BEFORE_LIQCANCEL_BY_ADMINCANCEL_BY_PREPARE_ADLCANCEL_BY_PREPARE_LIQCANCEL_BY_PZ_SIDE_CHCANCEL_BY_REDUCE_ONLYCANCEL_BY_SMPCANCEL_BY_TP_SL_TS_CLEARCANCEL_BY_USER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CancelTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CancelType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANCEL_BY_USER
public static final CancelType CANCEL_BY_USER
-
CANCEL_BY_REDUCE_ONLY
public static final CancelType CANCEL_BY_REDUCE_ONLY
-
CANCEL_BY_PREPARE_LIQ
public static final CancelType CANCEL_BY_PREPARE_LIQ
-
CANCEL_ALL_BEFORE_LIQ
public static final CancelType CANCEL_ALL_BEFORE_LIQ
-
CANCEL_BY_PREPARE_ADL
public static final CancelType CANCEL_BY_PREPARE_ADL
-
CANCEL_ALL_BEFORE_ADL
public static final CancelType CANCEL_ALL_BEFORE_ADL
-
CANCEL_BY_ADMIN
public static final CancelType CANCEL_BY_ADMIN
-
CANCEL_BY_TP_SL_TS_CLEAR
public static final CancelType CANCEL_BY_TP_SL_TS_CLEAR
-
CANCEL_BY_PZ_SIDE_CH
public static final CancelType CANCEL_BY_PZ_SIDE_CH
-
CANCEL_BY_SMP
public static final CancelType CANCEL_BY_SMP
-
-
Method Detail
-
values
public static CancelType[] 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 (CancelType c : CancelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CancelType 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
-
-