Futures order details
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | Futures order ID | [optional] [readonly] |
| user | int | User ID | [optional] [readonly] |
| create_time | float | Creation time of order | [optional] [readonly] |
| finish_time | float | Order finished time. Not returned if order is open | [optional] [readonly] |
| finish_as | str | How the order was 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- position_closed: cancelled because of position close - position_closed: canceled because the position was closed - reduce_out: only reduce positions by excluding hard-to-fill orders - stp: cancelled because self trade prevention | [optional] [readonly] |
| status | str | Order status - `open`: waiting to be traded - `finished`: finished | [optional] [readonly] |
| contract | str | Futures contract | |
| size | int | Order size. Specify positive number to make a bid, and negative number to ask | |
| iceberg | int | Display size for iceberg order. 0 for non-iceberg. Note that you will have to pay the taker fee for the hidden size | [optional] |
| price | str | Order price. 0 for market order with `tif` set as `ioc` | [optional] |
| close | bool | Set as `true` to close the position, with `size` set to 0 | [optional] [default to False] |
| is_close | bool | Is the order to close position | [optional] [readonly] |
| reduce_only | bool | Set as `true` to be reduce-only order | [optional] [default to False] |
| is_reduce_only | bool | Is the order reduce-only | [optional] [readonly] |
| is_liq | bool | Is the order for liquidation | [optional] [readonly] |
| tif | str | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none | [optional] [default to 'gtc'] |
| left | int | Size left to be traded | [optional] [readonly] |
| fill_price | str | Fill price of the order | [optional] [readonly] |
| text | str | Order custom information, users can use this field to set a custom ID, and the user-defined field must meet the following conditions: 1. Must start with `t-` 2. If `t-` is not calculated, the length cannot exceed 28 bytes 3. The input content can only contain numbers, letters, underscores (_), midscores (-) or dots (.) In addition to user-defined information, the following are internal reserved fields that identifies the source of the order: - web: web page - api: API call - app: mobile terminal - auto_deleveraging: Automatic position reduction - liquidation: Liquidation under the classic account’s old liquidation mode - liq-xxx: a. Liquidation under the classic account’s new liquidation mode (isolated, cross margin one-way mode, non-hedging part of cross margin hedge mode) b. Liquidation under isolated margin in unified account single currency margin mode - hedge-liq-xxx: Liquidation under the new liquidation mode of the classic account hedge mode, the cross margin hedged part undergoes liquidation, meaning both long and short positions are liquidated simultaneously. - pm_liquidate: Unified account multi-currency margin mode liquidation - comb_margin_liquidate: Unified account portfolio margin mode liquidation - scm_liquidate: Unified account single currency margin mode liquidation - insurance: insurance | [optional] |
| tkfr | str | Taker fee | [optional] [readonly] |
| mkfr | str | Maker fee | [optional] [readonly] |
| refu | int | Reference user ID | [optional] [readonly] |
| auto_size | str | Set side to close dual-mode position. `close_long` closes the long side; while `close_short` the short one. Note `size` also needs to be set to 0 | [optional] |
| stp_id | int | Orders between users in the same `stp_id` group are not allowed to be self-traded 1. If the `stp_id` of two orders being matched is non-zero and equal, they will not be executed. Instead, the corresponding strategy will be executed based on the `stp_act` of the taker. 2. `stp_id` returns `0` by default for orders that have not been set for `STP group` | [optional] [readonly] |
| stp_act | str | Self-Trading Prevention Action. Users can use this field to set self-trade prevetion strategies 1. After users join the `STP Group`, he can pass `stp_act` to limit the user's self-trade prevetion strategy. If `stp_act` is not passed, the default is `cn` strategy。 2. When the user does not join the `STP group`, an error will be returned when passing the `stp_act` parameter。 3. If the user did not use 'stp_act' when placing the order, 'stp_act' will return '-' - cn: Cancel newest, Cancel new orders and keep old ones - co: Cancel oldest, Cancel old orders and keep new ones - cb: Cancel both, Both old and new orders will be cancelled | [optional] |
| amend_text | str | The custom data that the user remarked when amending the order | [optional] [readonly] |
| biz_info | str | Additional information | [optional] [readonly] |