Enum PositionStatusDTO

    • Enum Constant Detail

      • 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 Detail

      • values

        public static PositionStatusDTO[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PositionStatusDTO c : PositionStatusDTO.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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