获取成交明细
HTTP请求 获取成交的历史明细
- POST /api/v2/trade/fills
权重(IP): 5, 权重(UID): 5
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 | 
|---|---|---|---|
| symbol | String | 是 | 币对,具体见:/products | 
| orderId | Long | 否 | 订单id | 
| after | Long | 否 | 开始时间 | 
| before | Long | 否 | 结束时间 | 
| pageIndex | Integer | 否 | 页码,从0开始 (默认值: 0) | 
| pageSize | Integer | 否 | 页大小,必须大于0且小于等于100 (默认值: 10) | 
请求示例
curl -X POST "https://api-spot.weex.com/api/v2/trade/fills" \
   -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 | 交易对 | 
| baseCoin | String | 交易币种 | 
| quoteCoin | String | 计价币种 | 
| orderId | String | 订单ID | 
| fillId | String | 成交ID | 
| orderType | String | 订单类型 | 
| side | String | 订单方向 | 
| fillPrice | String | 成交价格 | 
| fillQuantity | String | 成交数量 | 
| fillTotalAmount | String | 已成交总额 | 
| fees | String | 手续费 | 
| cTime | String | 创建时间 | 
返回示例
{
  "code": "00000",
  "msg": "success",
  "requestTime": 1743750228305,
  "data": {
    "fillsOrderResultList": [{
      "accountId": "590105411156181178",
      "symbol": "WXTUSDT_SPBL",
      "baseCoin": "WXT",
      "quoteCoin": "USDT",
      "orderId": "602929507946463674",
      "fillId": "602929507971629498",
      "orderType": "",
      "side": "buy",
      "fillPrice": "",
      "fillQuantity": "10",
      "fillTotalAmount": "0.10476",
      "fees": "0.01",
      "cTime": "1743749596589"
    }],
    "nextPage": false,
    "totals": 0
  }
}