Enum Class OrderStatus

java.lang.Object
java.lang.Enum<OrderStatus>
velox.api.layer1.data.OrderStatus
All Implemented Interfaces:
Serializable, Comparable<OrderStatus>, Constable

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

    • WORKING

      public static final OrderStatus WORKING
    • CANCELLED

      public static final OrderStatus CANCELLED
    • FILLED

      public static final OrderStatus FILLED
    • INACTIVE

      @Deprecated public static final OrderStatus INACTIVE
      Deprecated.
    • REJECTED

      public static final OrderStatus REJECTED
    • PENDING_CANCEL

      public static final OrderStatus PENDING_CANCEL
    • PENDING_SUBMIT

      public static final OrderStatus PENDING_SUBMIT
    • PENDING_MODIFY

      public static final OrderStatus PENDING_MODIFY
    • SUSPENDED

      public static final OrderStatus SUSPENDED
      e.g. child orders in brackets
    • DISCONNECTED

      public static final OrderStatus DISCONNECTED
  • Field Details

    • code

      public final int code
      Code used in recorded files
  • 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
    • valueOf

      public static OrderStatus valueOf(int code)
      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:
      code - 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
    • valueOfLoose

      public static OrderStatus valueOfLoose(String name)
      Parse order status from string that might not exactly match the enum.
      Parameters:
      name - string to parse
      Returns:
      parsed order type
    • isActive

      public boolean isActive()