Enum Class OrderStatusDTO

java.lang.Object
java.lang.Enum<OrderStatusDTO>
tech.cassandre.trading.bot.dto.trade.OrderStatusDTO
All Implemented Interfaces:
Serializable, Comparable<OrderStatusDTO>, Constable

public enum OrderStatusDTO extends Enum<OrderStatusDTO>
Order status for OrderDTO.
  • 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
    Removed from order book at exchange.
    Order has been either filled or cancelled.
    Order has expired it's time to live or trading session and been removed from order book.
    Fully match against opposite order on order book at exchange.
    Initial order when placed on the order book at exchange.
    Order is open and waiting to be filled.
    Order partially canceled at exchange.
    Partially match against opposite order on order book at exchange.
    Waiting to be removed from order book at exchange.
    Initial order when instantiated.
    Waiting to be replaced by another order on order book at exchange.
    Order has been rejected by exchange and not place on order book.
    Order has been replaced by another order on order book at exchange.
    Order has been triggered at stop price.
    The exchange returned a state which is not in the exchange's API documentation.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Returns true for final.
    final boolean
    Returns true if the status indicates an error.
    final boolean
    Returns true when open.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PENDING_NEW

      public static final OrderStatusDTO PENDING_NEW
      Initial order when instantiated.
    • NEW

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

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

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

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

      public static final OrderStatusDTO PARTIALLY_CANCELED
      Order partially canceled at exchange.
    • CANCELED

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

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

      public static final OrderStatusDTO REPLACED
      Order has been replaced by another order on order book at exchange.
    • STOPPED

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

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

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

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

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

      public static final OrderStatusDTO 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 OrderStatusDTO[] 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 OrderStatusDTO 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
    • isOpen

      public final boolean isOpen()
      Returns true when open.
      Returns:
      Returns true when open
    • isInError

      public final boolean isInError()
      Returns true if the status indicates an error.
      Returns:
      Returns true for final
    • isFinal

      public final boolean isFinal()
      Returns true for final.
      Returns:
      Returns true for final