Enum Class PositionsSide

java.lang.Object
java.lang.Enum<PositionsSide>
xyz.felh.okx.v5.enumeration.PositionsSide
All Implemented Interfaces:
Serializable, Comparable<PositionsSide>, Constable

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

    • LONG

      public static final PositionsSide LONG
      开平仓模式开多
    • SHORT

      public static final PositionsSide SHORT
      开平仓模式开空
    • NET

      public static final PositionsSide NET
      买卖模式(交割/永续/期权:pos为正代表开多,pos为负代表开空。币币杠杆:posCcy为交易货币时,代表开多;posCcy为计价货币时,代表开空。)
  • Method Details

    • values

      public static PositionsSide[] 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 PositionsSide 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
    • value

      public String value()