Spot order details
| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Order ID | [optional] [readonly] |
| text | str | 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: - 101: from android - 102: from IOS - 103: from IPAD - 104: from webapp - 3: from web - 2: from apiv2 - apiv4: from apiv4 pm_liquidate, comb_margin_liquidate, and scm_liquidate represent cross-margin liquidation orders liquidate represents isolated-margin liquidation orders | [optional] |
| amend_text | str | The custom data that the user remarked when amending the order | [optional] [readonly] |
| create_time | str | Creation time of order | [optional] [readonly] |
| update_time | str | Last modification time of order | [optional] [readonly] |
| create_time_ms | int | Creation time of order (in milliseconds) | [optional] [readonly] |
| update_time_ms | int | Last modification time of order (in milliseconds) | [optional] [readonly] |
| status | str | Order status - `open`: to be filled - `closed`: closed order - `cancelled`: cancelled | [optional] [readonly] |
| currency_pair | str | Currency pair | |
| type | str | Order Type - limit : Limit Order - market : Market Order | [optional] [default to 'limit'] |
| account | str | Account type, spot - spot account, margin - leveraged account, unified - unified account | [optional] [default to 'spot'] |
| side | str | Buy or sell order | |
| amount | str | Trading quantity When `type` is `limit`, it refers to the base currency (the currency being traded), such as `BTC` in `BTC_USDT` When `type` is `market`, it refers to different currencies based on the side: - `side`: `buy` refers to quote currency, `BTC_USDT` means `USDT` - `side`: `sell` refers to base currency, `BTC_USDT` means `BTC` | |
| price | str | Trading price, required when `type`=`limit` | [optional] |
| time_in_force | 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 Only `ioc` and `fok` are supported when `type`=`market` | [optional] [default to 'gtc'] |
| iceberg | str | Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported | [optional] |
| auto_borrow | bool | Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough | [optional] |
| auto_repay | bool | 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] |
| left | str | Amount left to fill | [optional] [readonly] |
| filled_amount | str | Amount filled | [optional] [readonly] |
| fill_price | str | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional] [readonly] |
| filled_total | str | Total filled in quote currency | [optional] [readonly] |
| avg_deal_price | str | Average fill price | [optional] [readonly] |
| fee | str | Fee deducted | [optional] [readonly] |
| fee_currency | str | Fee currency unit | [optional] [readonly] |
| point_fee | str | Points used to deduct fee | [optional] [readonly] |
| gt_fee | str | GT used to deduct fee | [optional] [readonly] |
| gt_maker_fee | str | GT amount used to deduct maker fee | [optional] [readonly] |
| gt_taker_fee | str | GT amount used to deduct taker fee | [optional] [readonly] |
| gt_discount | bool | Whether GT fee deduction is enabled | [optional] [readonly] |
| rebated_fee | str | Rebated fee | [optional] [readonly] |
| rebated_fee_currency | str | Rebated fee currency unit | [optional] [readonly] |
| 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 prevention strategies 1. After users join the `STP Group`, they can pass `stp_act` to limit the user's self-trade prevention 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] |
| finish_as | str | 订单结束方式,包括: - open: 等待处理 - filled: 完全成交 - cancelled: 用户撤销 - liquidate_cancelled: 爆仓撤销 - small: 订单数量太小 - depth_not_enough: 深度不足导致撤单 - trader_not_enough: 对手方不足导致撤单 - ioc: 未立即成交,因为 tif 设置为 ioc - poc: 未满足挂单策略,因为 tif 设置为 poc/rvt/rat/rpi表示只想成为maker, 经检查会成为taker被拒绝 - fok: 未立即完全成交,因为 tif 设置为 fok - stp: 订单发生自成交限制而被撤销 - price_protect_cancelled: 价格保护导致撤单 - unknown: 未知 | [optional] [readonly] |
| action_mode | str | Processing Mode: When placing an order, different fields are returned based on action_mode. This field is only valid during the request and is not included in the response result ACK: Asynchronous mode, only returns key order fields RESULT: No clearing information FULL: Full mode (default) | [optional] |
| slippage | str | Maximum supported slippage ratio for Spot Market Order Placement, calculated based on the latest market price at the time of order placement as the benchmark (Example: 0.03 means 3%) | [optional] |