public enum OrderAction extends Enum<OrderAction>
Order
event:
whether order was added or replaced, partially or fully executed, etc.Enum Constant and Description |
---|
BUST
Prior Trade/Order Execution bust.
|
DELETE
Order is fully canceled and removed from Order Book.
|
EXECUTE
Order is fully executed and removed from Order Book.
|
MODIFY
Order is modified without changing its price-time-priority (usually due to partial cancel by user).
|
NEW
New Order is added to Order Book.
|
PARTIAL
Size is changed (usually reduced) due to partial order execution.
|
REPLACE
Order is modified and price-time-priority is not maintained (i.e.
|
TRADE
Non-Book Trade - this Trade not refers to any entry in Order Book.
|
UNDEFINED
Default enum value for orders that do not support "Full Order Book" and for backward compatibility -
action must be derived from other
Order fields. |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns integer code that is used in flag bits.
|
static OrderAction |
valueOf(int code)
Returns side by integer code bit pattern.
|
static OrderAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderAction UNDEFINED
Order
fields.
All Full Order Book related fields for this action will be empty.
public static final OrderAction NEW
Full Order Book fields:
orderId
- always presentauxOrderId
- ID of the order replaced by this new order - if available.public static final OrderAction REPLACE
public static final OrderAction MODIFY
public static final OrderAction DELETE
size
will be equal to 0.
Full Order Book fields:
orderId
- always presentauxOrderId
- ID of the new order replacing this order - if available.public static final OrderAction PARTIAL
size
will be updated to show current outstanding size.
Full Order Book fields:
orderId
- always presentOrderBase.getAuxOrderId()
auxOrderId} - aggressor order ID, if availabletradeId
- if availabletradeSize
and tradePrice
-
contain size and price of this executionpublic static final OrderAction EXECUTE
size
will be equals to 0.
Full Order Book fields:
orderId
- always presentOrderBase.getAuxOrderId()
auxOrderId} - aggressor order ID, if availabletradeId
- if availabletradeSize
and tradePrice
-
contain size and price of this execution - always presentpublic static final OrderAction TRADE
size
and price
will be equals to 0.
Full Order Book fields:
orderId
- always emptyOrderBase.getTradeId()
tradeId} - if availabletradeSize
and tradePrice
-
contain size and price of this trade - always presentpublic static final OrderAction BUST
public static OrderAction[] values()
for (OrderAction c : OrderAction.values()) System.out.println(c);
public static OrderAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static OrderAction valueOf(int code)
code
- integer code.ArrayIndexOutOfBoundsException
- if code is invalid.public int getCode()
Copyright © 2002–2023 Devexperts LLC. All rights reserved.