# 查询子代理数据（代理账户）

**HTTP request** 查询子代理交易量、手续费与佣金数据（代理账户）

- **POST** ```/api/v3/rebate/affiliate/querySubChannelTransactions```

权重(IP): 10

<div class='api-content-wrap'>
<div>

<strong>请求参数</strong>

| 参数名         | 参数类型    | 是否必须 | 描述                 |
|:------------|:--------|:-----|:-------------------|
| subUid      | Long    | 否    | 子代理的UID            |
| startTime   | Long    | 否    | 开始时间戳(UTC毫秒)       |
| endTime     | Long    | 否    | 结束时间戳(UTC毫秒)       |
| productType | String  | 是    | 产品类型(SPOT或FUTURES) |
| pageNum     | Integer | 否    | 页码(从1开始，默认1)       |
| pageSize    | Integer | 否    | 每页数量(默认100)        |
</div> 
<div class='api-align'>
  <div class='code-wrap'>
<strong>请求示例</strong>

```powershell
curl -X POST "https://api-spot.weex.com/api/v3/rebate/affiliate/querySubChannelTransactions" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*******" \
   -H "ACCESS-PASSPHRASE:*****" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "Content-Type: application/json" \
   -d '{
    "startTime": null,
    "endTime": null,
    "productType": "FUTURES"
}'
```

  </div>
  </div> 

</div>

<div class='api-content-wrap'>
  <div>
<strong>返回参数</strong>

| 字段名             | 类型        | 字段说明          |
|:----------------|:----------|:--------------|
| records         | Array     | 子代理数据列表       |
| subAffiliateUid | String    | 子代理id         |
| productType     | String    | 产品类型          |
| date            | String    | 日期            |
| tradingVolume   | String    | 总交易量          |
| netTradingFee   | String    | 平台实际收取的净交易手续费 |
| paidCommission  | String    | 实际的返佣金额       |
| total           | Long      | 总记录数          |
| size            | Integer   | 每页数量          |
| current         | Integer   | 当前页码          |
| pages           | Integer   | 总页数           |

  </div>
  <div class='api-align'>

  <div class='code-wrap'>
<strong>返回示例</strong>

```json
{
  "records": [
    {
      "subAffiliateUid": "6424873609",
      "productType": "FUTURES",
      "date": "2025-08-20",
      "tradingVolume": "2698.099",
      "netTradingFee": "1.70343",
      "paidCommission": "1.362744"
    }
  ],
  "total": 1,
  "size": 10,
  "current": 1,
  "pages": 1
}
```
  </div>
    </div> 
</div>
