Enum TimeInForce
- java.lang.Object
-
- java.lang.Enum<TimeInForce>
-
- com.bybit.api.client.domain.trade.TimeInForce
-
- All Implemented Interfaces:
Serializable,Comparable<TimeInForce>
public enum TimeInForce extends Enum<TimeInForce>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILL_OR_KILLFOKGOOD_TILL_CANCELGTCIMMEDIATE_OR_CANCELIOCPOST_ONLY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeInForcevalueOf(String name)Returns the enum constant of this type with the specified name.static TimeInForce[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOOD_TILL_CANCEL
public static final TimeInForce GOOD_TILL_CANCEL
-
IMMEDIATE_OR_CANCEL
public static final TimeInForce IMMEDIATE_OR_CANCEL
-
FILL_OR_KILL
public static final TimeInForce FILL_OR_KILL
-
POST_ONLY
public static final TimeInForce POST_ONLY
-
GTC
public static final TimeInForce GTC
-
IOC
public static final TimeInForce IOC
-
FOK
public static final TimeInForce FOK
-
-
Method Detail
-
values
public static TimeInForce[] 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 (TimeInForce c : TimeInForce.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeInForce 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
-
-