Package org.knowm.xchange.dto
Enum Order.OrderStatus
- All Implemented Interfaces:
Serializable
,Comparable<Order.OrderStatus>
,java.lang.constant.Constable
- Enclosing class:
- Order
public static enum Order.OrderStatus extends Enum<Order.OrderStatus>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELED
Removed from order book at exchangeCLOSED
Order has been either filled or cancelledEXPIRED
Order has expired it's time to live or trading session and been removed from order bookFILLED
Fully match against opposite order on order book at exchangeNEW
Initial order when placed on the order book at exchangeOPEN
Order is open and waiting to be filledPARTIALLY_CANCELED
Order was partially canceled at exchangePARTIALLY_FILLED
Partially match against opposite order on order book at exchangePENDING_CANCEL
Waiting to be removed from order book at exchangePENDING_NEW
Initial order when instantiatedPENDING_REPLACE
Waiting to be replaced by another order on order book at exchangeREJECTED
Order has been rejected by exchange and not place on order bookREPLACED
Order has been replace by another order on order book at exchangeSTOPPED
Order has been triggered at stop priceUNKNOWN
The exchange returned a state which is not in the exchange's API documentation. -
Method Summary
Modifier and Type Method Description boolean
isFinal()
Returns true for finalOrder.OrderStatus
boolean
isOpen()
Returns true when openOrder.OrderStatus
static Order.OrderStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static Order.OrderStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PENDING_NEW
Initial order when instantiated -
NEW
Initial order when placed on the order book at exchange -
PARTIALLY_FILLED
Partially match against opposite order on order book at exchange -
FILLED
Fully match against opposite order on order book at exchange -
PENDING_CANCEL
Waiting to be removed from order book at exchange -
PARTIALLY_CANCELED
Order was partially canceled at exchange -
CANCELED
Removed from order book at exchange -
PENDING_REPLACE
Waiting to be replaced by another order on order book at exchange -
REPLACED
Order has been replace by another order on order book at exchange -
STOPPED
Order has been triggered at stop price -
REJECTED
Order has been rejected by exchange and not place on order book -
EXPIRED
Order has expired it's time to live or trading session and been removed from order book -
OPEN
Order is open and waiting to be filled -
CLOSED
Order has been either filled or cancelled -
UNKNOWN
The exchange returned a state which is not in the exchange's API documentation. The state of the order cannot be confirmed.
-
-
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
-
isFinal
public boolean isFinal()Returns true for finalOrder.OrderStatus
-
isOpen
public boolean isOpen()Returns true when openOrder.OrderStatus
-