Unified enumeration values used in orders, trades, positions, and other interfaces.
Order Status
| State | Description |
|---|
| 1 | New |
| 2 | Partially filled |
| 3 | Fully filled |
| 4 | Canceled |
| 5 | Rejected |
Order Type
| Type | Description |
|---|
| 1 | Limit order (LIMIT) |
| 2 | Market order (MARKET) |
Order Side
| Side | Description |
|---|
| 1 | Buy (BUY) |
| 2 | Sell (SELL) |
Time In Force
| TimeInForce | Description |
|---|
| 1 | GTC (Good Till Cancel) |
| 2 | IOC (Immediate Or Cancel) |
| 3 | FOK (Fill Or Kill) |
| 4 | GTX (Post Only, cancel if takes) |
Matching Role
| Role | Description |
|---|
| 1 | Maker (maker) |
| 2 | Taker (taker) |
Margin Mode (Futures)
| MarginMode | Description |
|---|
| 1 | Isolated margin |
| 2 | Cross margin |
Position Mode (Futures)
| PositionMode | Description |
|---|
| 1 | One-way mode |
| 2 | Hedge mode |
Position Side (Futures)
| PositionSide | Description |
|---|
| 1 | Long (LONG) |
| 2 | Short (SHORT) |
Position Action (Futures)
| PositionAction | Description |
|---|
| 1 | Open |
| 2 | Close |
Close Type (Futures)
| CloseType | Description |
|---|
| 1 | User initiated close |
| 2 | Take profit triggered |
| 3 | Stop loss triggered |
| 4 | Liquidation |
| 5 | ADL (Auto-Deleveraging) |
| 6 | Bankruptcy |
Trading Pair Status
| State | Description |
|---|
| ONLINE | Online |
| OFFLINE | Offline |
| DELISTED | Delisted |
BizType
| BizType | Description |
|---|
| SPOT | Spot |
| FUTURES | Futures |