Get Trade History
Query users' execution records, sorted by execId
in descending order.
Classic account covers: Spot / USDT perpetual / Inverse contract
tip
- You may have multiple executions in a single order.
- You can query by symbol, baseCoin, orderId, and if you pass multiple params, the system will process them according to this priority: orderId > symbol.
HTTP Request
GET /cloud/trade/v3/execution/list
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
category | true | string | Product type
|
symbol | false | string | Symbol name |
orderId | false | string | Order ID |
startTime | false | integer | The start timestamp (ms)
|
endTime | false | integer | The end timestamp (ms) |
execType | false | string | Execution type. Classic spot is not supported |
limit | false | integer | Limit for data size per page. [1 , 100 ]. Default: 50 |
cursor | false | string | Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set |
Response Parameters
Parameter | Type | Comments |
---|---|---|
category | string | Product type |
list | array | Object |
> symbol | string | Symbol name |
> orderId | string | Order ID |
> side | string | Side. Buy ,Sell |
> orderPrice | string | Order price |
> orderQty | string | Order qty |
> leavesQty | string | Create an unexecuted order quantity, spot trading is not supported |
> createType | string | Order creation type: Spot do not return this field |
> orderType | string | Order type. Market ,Limit |
> stopOrderType | string | Stop order type. If the order is not stop order, it either returns UNKNOWN or "" . spot is not supported |
> execFee | string | Executed trading fee. You can get spot fee currency instruction here |
> execId | string | Execution ID |
> execPrice | string | Execution price |
> execQty | string | Execution qty |
> execType | string | Executed type. spot is not supported |
> execValue | string | Executed order value. spot is not supported |
> execTime | string | Executed timestamp(ms) |
> isMaker | boolean | Is maker order. true : maker, false : taker |
> feeRate | string | Trading fee rate. spot is not supported |
> markPrice | string | The mark price of the symbol when executing. spot is not supported |
> closedSize | string | Closed position size |
> seq | long | Cross sequence, used to associate each fill and each position update
|
nextPageCursor | string | Refer to the cursor request parameter |
請求示例
GET /cloud/trade/v3/execution/list?category=spot&symbol=BTCUSDT HTTP/1.1
Host: openapi-testnet.zoomex.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672221263407
X-BAPI-RECV-WINDOW: 5000
響應示例
{
"result": {
"list": [
{
"symbol": "BTCUSDT",
"orderId": "1896284562024596224",
"side": "Buy",
"orderPrice": "",
"orderQty": "",
"leavesQty": "",
"createType": "",
"orderType": "Market",
"stopOrderType": "",
"execFee": "0.0000000198",
"execId": "2100000000136808695",
"execPrice": "83877.09",
"execType": "",
"execValue": "",
"execTime": "1740790735426",
"isMaker": false,
"feeRate": "",
"markPrice": "",
"closedSize": 0,
"seq": ""
},
{
"symbol": "BTCUSDT",
"orderId": "1893483376007480064",
"side": "Buy",
"orderPrice": "",
"orderQty": "",
"leavesQty": "",
"createType": "",
"orderType": "Market",
"stopOrderType": "",
"execFee": "0.0000000198",
"execId": "2100000000135856467",
"execPrice": "90800",
"execType": "",
"execValue": "",
"execTime": "1740456808031",
"isMaker": false,
"feeRate": "",
"markPrice": "",
"closedSize": 0,
"seq": ""
}
],
"nextPageCursor": "2100000000135856467",
"category": "spot"
},
"retCode": 0,
"retExtInfo": {},
"retMsg": "OK",
"time": 1740966707907
}