| orderId |
string |
Order ID |
[optional] [default to undefined] |
| amendText |
string |
The custom data that the user remarked when amending the order |
[optional] [default to undefined] |
| text |
string |
Order custom information. Users can set custom ID with this field. Custom fields must meet the following conditions: 1. Must start with `t-` 2. Excluding `t-`, length cannot exceed 28 bytes 3. Can only contain numbers, letters, underscore(_), hyphen(-) or dot(.) |
[optional] [default to undefined] |
| succeeded |
boolean |
Request execution result |
[optional] [default to undefined] |
| label |
string |
Error label, if any, otherwise an empty string |
[optional] [default to undefined] |
| message |
string |
Detailed error message, if any, otherwise an empty string |
[optional] [default to undefined] |
| id |
string |
Order ID |
[optional] [readonly] [default to undefined] |
| createTime |
string |
Creation time of order |
[optional] [readonly] [default to undefined] |
| updateTime |
string |
Last modification time of order |
[optional] [readonly] [default to undefined] |
| createTimeMs |
number |
Creation time of order (in milliseconds) |
[optional] [readonly] [default to undefined] |
| updateTimeMs |
number |
Last modification time of order (in milliseconds) |
[optional] [readonly] [default to undefined] |
| status |
string |
Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled |
[optional] [readonly] [default to undefined] |
| currencyPair |
string |
Currency pair |
[optional] [default to undefined] |
| type |
string |
Order Type - limit : Limit Order - market : Market Order |
[optional] [default to 'limit'] |
| account |
string |
Account type, spot - spot account, margin - leveraged account, unified - unified account |
[optional] [default to 'spot'] |
| side |
string |
Buy or sell order |
[optional] [default to undefined] |
| amount |
string |
Trade amount |
[optional] [default to undefined] |
| price |
string |
Order price |
[optional] [default to undefined] |
| timeInForce |
string |
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'] |
| iceberg |
string |
Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported |
[optional] [default to undefined] |
| autoBorrow |
boolean |
Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough |
[optional] [default to undefined] |
| autoRepay |
boolean |
Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` can be both set to true in one order |
[optional] [default to undefined] |
| left |
string |
Amount left to fill |
[optional] [readonly] [default to undefined] |
| filledAmount |
string |
Amount filled |
[optional] [readonly] [default to undefined] |
| fillPrice |
string |
Total filled in quote currency. Deprecated in favor of `filled_total` |
[optional] [readonly] [default to undefined] |
| filledTotal |
string |
Total filled in quote currency |
[optional] [readonly] [default to undefined] |
| avgDealPrice |
string |
Average fill price |
[optional] [readonly] [default to undefined] |
| fee |
string |
Fee deducted |
[optional] [readonly] [default to undefined] |
| feeCurrency |
string |
Fee currency unit |
[optional] [readonly] [default to undefined] |
| pointFee |
string |
Points used to deduct fee |
[optional] [readonly] [default to undefined] |
| gtFee |
string |
GT used to deduct fee |
[optional] [readonly] [default to undefined] |
| gtDiscount |
boolean |
Whether GT fee deduction is enabled |
[optional] [readonly] [default to undefined] |
| rebatedFee |
string |
Rebated fee |
[optional] [readonly] [default to undefined] |
| rebatedFeeCurrency |
string |
Rebated fee currency unit |
[optional] [readonly] [default to undefined] |
| stpId |
number |
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] [default to undefined] |
| stpAct |
string |
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, new ones - cb: Cancel both, Both old and new orders will be cancelled |
[optional] [default to undefined] |
| finishAs |
string |
How the order was finished. - open: processing - filled: filled totally - cancelled: manually cancelled - ioc: time in force is `IOC`, finish immediately - stp: cancelled because self trade prevention |
[optional] [readonly] [default to undefined] |