Futures order details
| Name | Type | Description | Notes |
|---|---|---|---|
| id | Long | Futures order ID | [optional] [readonly] |
| user | Integer | User ID | [optional] [readonly] |
| createTime | BigDecimal | Order creation time | [optional] [readonly] |
| finishTime | BigDecimal | Order finished time. Not returned if order is open | [optional] [readonly] |
| finishAs | FinishAsEnum | How the order is finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set | [optional] [readonly] |
| status | StatusEnum | Order status - `open`: waiting to be traded - `finished`: finished | [optional] [readonly] |
| contract | String | Futures contract | |
| size | Long | Order size. Specify positive number to make a bid, and negative number to ask | |
| iceberg | Long | Display size for iceberg order. 0 for non-iceberg. Note that you would pay the taker fee for the hidden size | [optional] |
| price | String | Order price. 0 for market order with `tif` set as `ioc` | [optional] |
| close | Boolean | Set as `true` to close the position, with `size` set to 0 | [optional] |
| isClose | Boolean | Is the order to close position | [optional] [readonly] |
| reduceOnly | Boolean | Set as `true` to be reduce-only order | [optional] |
| isReduceOnly | Boolean | Is the order reduce-only | [optional] [readonly] |
| isLiq | Boolean | Is the order for liquidation | [optional] [readonly] |
| tif | TifEnum | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, reduce-only | [optional] |
| left | Long | Size left to be traded | [optional] [readonly] |
| fillPrice | String | Fill price of the order | [optional] [readonly] |
| text | String | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) Besides user defined information, reserved contents are listed below, denoting how the order is created: - web: from web - api: from API - app: from mobile phones - auto_deleveraging: from ADL - liquidation: from liquidation - insurance: from insurance | [optional] |
| tkfr | String | Taker fee | [optional] [readonly] |
| mkfr | String | Maker fee | [optional] [readonly] |
| refu | Integer | Reference user ID | [optional] [readonly] |
| Name | Value |
|---|---|
| FILLED | "filled" |
| CANCELLED | "cancelled" |
| LIQUIDATED | "liquidated" |
| IOC | "ioc" |
| AUTO_DELEVERAGED | "auto_deleveraged" |
| REDUCE_ONLY | "reduce_only" |
| Name | Value |
|---|---|
| OPEN | "open" |
| FINISHED | "finished" |
| Name | Value |
|---|---|
| GTC | "gtc" |
| IOC | "ioc" |
| POC | "poc" |