Package org.knowm.xchange.dto
Enum Order.OrderType
- All Implemented Interfaces:
Serializable
,Comparable<Order.OrderType>
,java.lang.constant.Constable
- Enclosing class:
Order
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSelling order (the trader is providing the base currency)Buying order (the trader is providing the counter currency)This is to close a short position when trading crypto currency derivatives such as swaps, futures for CFD's.This is to close a long position when trading crypto currency derivatives such as swaps, futures for CFD's. -
Method Summary
Modifier and TypeMethodDescriptionstatic Order.OrderType
Returns the enum constant of this type with the specified name.static Order.OrderType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BID
Buying order (the trader is providing the counter currency) -
ASK
Selling order (the trader is providing the base currency) -
EXIT_ASK
This is to close a short position when trading crypto currency derivatives such as swaps, futures for CFD's. -
EXIT_BID
This is to close a long position when trading crypto currency derivatives such as swaps, futures for CFD's.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getOpposite
-