| Account Mode | Trade Type | Order Status | Max Query Range |
|---|---|---|---|
| Classic Account | SPOT | Canceled | 2 days (from now back to 2 * 24 hours) |
| Classic Account | SPOT | Filled | 7 days (from now back to 7 * 24 hours) |
Note
If the specified time range exceeds the allowed window, the system will query data within the corresponding maximum window by default.
curl --location --request GET 'https://api.kucoin.com/api/v1/hf/orders/done?symbol=BTC-USDT&side&type&lastId=254062248624417&limit=20&startAt=1728663338000&endAt=1728692138000'{
"code": "200000",
"data": {
"lastId": 19814995255305,
"items": [
{
"id": "6717422bd51c29000775ea03",
"clientOid": "5c52e11203aa677f33e493fb",
"symbol": "BTC-USDT",
"opType": "DEAL",
"type": "limit",
"side": "buy",
"price": "70000",
"size": "0.00001",
"funds": "0.7",
"dealSize": "0.00001",
"dealFunds": "0.677176",
"remainSize": "0",
"remainFunds": "0.022824",
"cancelledSize": "0",
"cancelledFunds": "0",
"fee": "0.000677176",
"feeCurrency": "USDT",
"stp": null,
"timeInForce": "GTC",
"postOnly": false,
"hidden": false,
"iceberg": false,
"visibleSize": "0",
"cancelAfter": 0,
"channel": "API",
"remark": "order remarks",
"tags": null,
"cancelExist": false,
"tradeType": "TRADE",
"inOrderBook": false,
"active": false,
"tax": "0",
"createdAt": 1729577515444,
"lastUpdatedAt": 1729577515481
}
]
}
}