| Order Type | Queryable Time Range |
|---|---|
Canceled NORMAL orders without fills | Within the last 2 hours |
Triggered or canceled ADVANCED orders | Within the last 2 hours |
NORMAL Orders with fills | Within the last 168 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/ua/v2/unified/order/history?tradeType=SPOT&symbol=BTC-USDT&side=BUY&orderFilter=NORMAL&startAt=1758092129514&endAt=1758092129580&lastId=123456789&pageSize=50'{
"code": "200000",
"data": {
"tradeType": "FUTURES",
"lastId": 130610708,
"items": [
{
"orderId": "402666817186754560",
"symbol": "XBTUSDTM",
"orderType": "LIMIT",
"side": "BUY",
"size": "10",
"price": "30",
"timeInForce": "GTC",
"tags": "",
"orderTime": 1768816452405840836,
"stp": "",
"cancelAfter": null,
"postOnly": false,
"reduceOnly": false,
"triggerDirection": "",
"triggerPrice": "",
"triggerPriceType": "",
"tpTriggerPrice": "",
"tpTriggerPriceType": "",
"slTriggerPrice": "",
"slTriggerPriceType": "",
"filledSize": "0",
"avgPrice": "0",
"fee": "0",
"feeCurrency": "USDT",
"tax": "0",
"updatedTime": 1768816452408000000,
"triggerOrderId": "",
"cancelReason": "You have canceled the order.",
"cancelSize": "10",
"clientOid": "",
"sizeUnit": "UNIT",
"status": 5
}
]
}
}