Skip to main content

Public module

Order Create State​

StateDescription
OKSuccess
PLATFORM_REJECTPlatform reject.
INSUFFICIENT_BALANCEInsufficient balance.
INSUFFICIENT_POSITIONInsufficient position.
ORDER_NUMBER_LIMITThe number of orders has reached the maximum.
LEVERAGE_MAX_QUANTITY_LIMITLeverage_max_quantity_limit.
OPEN_ORDER_PRICE_LIMITOpen order price limit.
OPEN_ORDER_MIN_NOMINAL_VALUE_LIMITMinimum nominal value limit for opening orders.
OPEN_ORDER_MAX_NOMINAL_VALUE_LIMITMaximum nominal value limit for opening orders.
POSITION_TYPE_MISMATCHPosition type mismatch.
INSUFFICIENT_LEVELING_QUANTITYInsufficient leveling quantity.
POSITION_ALREADY_LIQUIDATIONPosition already liquidated.
MARKET_DEVIATION_RISK_CONTROLMarket deviation risk control
OPEN_ORDER_BUY_PRICE_LIMITThe buy price cannot exceed P1 (P1 = mark price × (1 + buy limit)).
OPEN_ORDER_SELL_PRICE_LIMITThe sell price cannot be lower than P2 (P2 = mark price × (1 − sell limit)).
RISK_USER_LIMIT_LEVERAGERisk user leverage limit.
EXIST_BONUS_POSITON_NOT_CREATE_REVERSE_POSITIONA bonus position exists, so a reverse position cannot be created.
EXIST_DEPOSIT_COUPON_NOT_CREATE_ISOLATED_ORDERCannot create an isolated order when a deposit coupon exists.
MARKPRICE_INVALIDInvalid mark price for creating an order.

Order Cancel State​

StateDescription
OKSuccess
ORDER_CANCELEDInvalid order
PLATFORM_REJECTPlatform Reject