Enum Class PositionStatusDTO

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

public enum PositionStatusDTO extends Enum<PositionStatusDTO>
Position status for PositionDTO.
  • Enum Constant Details

    • OPENING

      public static final PositionStatusDTO OPENING
      Opening - A position has been created, a buy order has been made but not yet completed.
    • OPENING_FAILURE

      public static final PositionStatusDTO OPENING_FAILURE
      Opening failure - A position has been created, but the buy order did not succeed.
    • OPENED

      public static final PositionStatusDTO OPENED
      Opened - The buy order has been accepted.
    • CLOSING

      public static final PositionStatusDTO CLOSING
      Closing - A sell order has been made but not yet completed.
    • CLOSING_FAILURE

      public static final PositionStatusDTO CLOSING_FAILURE
      Closing failure - The sell order did not succeed.
    • CLOSED

      public static final PositionStatusDTO CLOSED
      Closed - The sell order has been accepted.
  • Method Details

    • values

      public static PositionStatusDTO[] 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 PositionStatusDTO 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