Enum Class OrderType

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

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

    • MARKET

      public static final OrderType MARKET
      市价单
    • LIMIT

      public static final OrderType LIMIT
      限价单
    • POST_ONLY

      public static final OrderType POST_ONLY
      只做maker单
    • FOK

      public static final OrderType FOK
      全部成交或立即取消
    • IOC

      public static final OrderType IOC
      立即成交并取消剩余
    • OPTIMAL_LIMIT_IOC

      public static final OrderType OPTIMAL_LIMIT_IOC
      市价委托立即成交并取消剩余(仅适用交割、永续)
    • MMP

      public static final OrderType MMP
      做市商保护(仅适用于组合保证金账户模式下的期权订单)
    • MMP_AND_POST_ONLY

      public static final OrderType MMP_AND_POST_ONLY
      做市商保护且只做maker单(仅适用于组合保证金账户模式下的期权订单)
  • Method Details

    • values

      public static OrderType[] 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 OrderType 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()