Skip to main content

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

ParameterRequiredTypeComments
categorytruestringProduct type
  • Trading account: spot, linear, inverse
symbolfalsestringSymbol name
startTimefalseintegerThe start timestamp (ms)
  • startTime and endTime are not passed, return 7 days by default
  • Only startTime is passed, return range between startTime and startTime+7 days
  • Only endTime is passed, return range between endTime-7 days and endTime
  • If both are passed, the rule is endTime - startTime <= 7 days
endTimefalseintegerThe end timestamp (ms)
execTypefalsestringExecution type. Classic spot is not supported
limitfalseintegerLimit for data size per page. [1, 100]. Default: 50
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
categorystringProduct type
listarrayObject
> symbolstringSymbol name
> orderIdstringOrder ID
> sidestringSide. Buy,Sell
> orderPricestringOrder price
> orderQtystringOrder qty
> leavesQtystringCreate an unexecuted order quantity, spot trading is not supported
> orderTypestringOrder type. Market,Limit
> stopOrderTypestringStop order type. If the order is not stop order, it either returns UNKNOWN or "". spot is not supported
> execFeestringExecuted trading fee. You can get spot fee currency instruction here
> execIdstringExecution ID
> execPricestringExecution price
> execQtystringExecution qty
> execTypestringExecuted type. spot is not supported
> execValuestringExecuted order value. spot is not supported
> execTimestringExecuted timestamp(ms)
> isMakerbooleanIs maker order. true: maker, false: taker
> feeRatestringTrading fee rate. spot is not supported
> markPricestringThe mark price of the symbol when executing. spot is not supported
> closedSizestringClosed position size
nextPageCursorstringRefer 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
}