Skip to main content

Public Enumerations

Unified enumeration values used in orders, trades, positions, and other interfaces.

Order Status

StateDescription
1New
2Partially filled
3Fully filled
4Canceled
5Rejected

Order Type

TypeDescription
1Limit order (LIMIT)
2Market order (MARKET)

Order Side

SideDescription
1Buy (BUY)
2Sell (SELL)

Time In Force

TimeInForceDescription
1GTC (Good Till Cancel)
2IOC (Immediate Or Cancel)
3FOK (Fill Or Kill)
4GTX (Post Only, cancel if takes)

Matching Role

RoleDescription
1Maker (maker)
2Taker (taker)

Margin Mode (Futures)

MarginModeDescription
1Isolated margin
2Cross margin

Position Mode (Futures)

PositionModeDescription
1One-way mode
2Hedge mode

Position Side (Futures)

PositionSideDescription
1Long (LONG)
2Short (SHORT)

Position Action (Futures)

PositionActionDescription
1Open
2Close

Close Type (Futures)

CloseTypeDescription
1User initiated close
2Take profit triggered
3Stop loss triggered
4Liquidation
5ADL (Auto-Deleveraging)
6Bankruptcy

Trading Pair Status

StateDescription
ONLINEOnline
OFFLINEOffline
DELISTEDDelisted

BizType

BizTypeDescription
SPOTSpot
FUTURESFutures