Get Pre-upgrade Trade History
Get users' execution records which occurred before you upgraded the account to a Unified account, sorted by execTime in descending order
HTTP Request
GET /cloud/trade/v3/pre-upgrade/execution/list
Request Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| category | true | string | Product type
|
| symbol | false | string | Symbol name |
| 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 |
| > 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 |
| nextPageCursor | string | Refer to the cursor request parameter |
請求示例
GET /cloud/trade/v3/pre-upgrade/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": "",
"orderType": "Market",
"stopOrderType": "",
"execFee": "0.0000000198",
"execId": "2100000000136808695",
"execPrice": "83877.09",
"execType": "",
"execValue": "",
"execTime": "1740790735426",
"isMaker": false,
"feeRate": "",
"markPrice": "",
"closedSize": 0,
},
{
"symbol": "BTCUSDT",
"orderId": "1893483376007480064",
"side": "Buy",
"orderPrice": "",
"orderQty": "",
"leavesQty": "",
"orderType": "Market",
"stopOrderType": "",
"execFee": "0.0000000198",
"execId": "2100000000135856467",
"execPrice": "90800",
"execType": "",
"execValue": "",
"execTime": "1740456808031",
"isMaker": false,
"feeRate": "",
"markPrice": "",
"closedSize": 0,
}
],
"nextPageCursor": "2100000000135856467",
"category": "spot"
},
"retCode": 0,
"retExtInfo": {},
"retMsg": "OK",
"time": 1740966707907
}