获取历史委托列表
HTTP请求 获取历史委托列表
- POST
/api/v2/trade/history
限速规则:10次/1s
请求参数
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
symbol | String | 是 | 币对,具体见:/products |
after | Long | 否 | 开始时间 |
before | Long | 否 | 结束时间 |
pageIndex | Integer | 否 | 页码,从0开始 (默认值: 0) |
pageSize | Integer | 否 | 页大小,必须大于0且小于等于100 (默认值: 10) |
请求示例
curl -X POST "https://api-spot.weex.com/api/v2/trade/history" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "WXTUSDT_SPBL"}'
返回参数
字段名 | 类型 | 字段说明 |
---|---|---|
accountId | String | 账户ID |
symbol | String | 交易对 |
orderId | String | 订单ID |
clientOrderId | String | 客户端订单ID |
price | String | 委托价格 |
quantity | String | 委托数量 |
orderType | String | 订单类型 |
side | String | 订单方向 |
status | String | 订单状态 |
latestFillPrice | String | 当前委托单最新成交价格 |
maxFillPrice | String | 当前委托单最高成交价格 |
minFillPrice | String | 当前委托单最低成交价格 |
fillQuantity | String | 成交数量 |
fillTotalAmount | String | 已成交总额 |
cTime | String | 创建时间 |
uTime | String | 更新时间 |
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1743755234949,
"data": {
"orderInfoResultList": [{
"accountId": "590105411156181178",
"symbol": "WXTUSDT_SPBL",
"orderId": "602941812964852154",
"clientOrderId": "202504040742105191743752530280",
"price": "100.000000",
"quantity": "10",
"orderType": "limit",
"side": "sell",
"status": "open",
"latestFillPrice": "0",
"maxFillPrice": "0",
"minFillPrice": "0",
"fillQuantity": "0",
"fillTotalAmount": "0",
"cTime": "1743752530328",
"uTime": "1743752530334"
}],
"nextPage": true,
"totals": 0
}
}