Skip to main content

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

ParameterRequiredTypeComments
categorytruestringProduct type
  • Classic account: spot, linear, inverse
symbolfalsestringSymbol name
orderIdfalsestringOrder ID
startTimefalseintegerThe start timestamp (ms)
  • Classic Spot: supports the interval up to 180 days
  • Others:
    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
> createTypestringOrder creation type: Spot do not return this field
> 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
> seqlongCross sequence, used to associate each fill and each position update
  • The seq will be the same when conclude multiple transactions at the same time
  • Different symbols may have the same seq, please use seq + symbol to check unique
  • Spot trade does not have this field
nextPageCursorstringRefer 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
}