Enum Class OrderStatus

java.lang.Object
java.lang.Enum<OrderStatus>
net.osslabz.crypto.OrderStatus
All Implemented Interfaces:
Serializable, Comparable<OrderStatus>, Constable

public enum OrderStatus extends Enum<OrderStatus>
  • Enum Constant Details

    • PREPARED

      public static final OrderStatus PREPARED
    • ERROR

      public static final OrderStatus ERROR
    • PENDING_NEW

      public static final OrderStatus PENDING_NEW
      Initial order when instantiated
    • NEW

      public static final OrderStatus NEW
      Initial order when placed on the order book at exchange
    • PARTIALLY_FILLED

      public static final OrderStatus PARTIALLY_FILLED
      Partially match against opposite order on order book at exchange
    • FILLED

      public static final OrderStatus FILLED
      Fully match against opposite order on order book at exchange
    • PENDING_CANCEL

      public static final OrderStatus PENDING_CANCEL
      Waiting to be removed from order book at exchange
    • PARTIALLY_CANCELED

      public static final OrderStatus PARTIALLY_CANCELED
      Order was partially canceled at exchange
    • CANCELED

      public static final OrderStatus CANCELED
      Removed from order book at exchange
    • PENDING_REPLACE

      public static final OrderStatus PENDING_REPLACE
      Waiting to be replaced by another order on order book at exchange
    • REPLACED

      public static final OrderStatus REPLACED
      Order has been replace by another order on order book at exchange
    • STOPPED

      public static final OrderStatus STOPPED
      Order has been triggered at stop price
    • REJECTED

      public static final OrderStatus REJECTED
      Order has been rejected by exchange and not place on order book
    • EXPIRED

      public static final OrderStatus EXPIRED
      Order has expired it's time to live or trading session and been removed from order book
    • OPEN

      public static final OrderStatus OPEN
      Order is open and waiting to be filled
    • CLOSED

      public static final OrderStatus CLOSED
      Order has been either filled or cancelled
    • UNKNOWN

      public static final OrderStatus 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

      public static OrderStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OrderStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null