获取现货账户账单流水
HTTP请求 获取现货账户账单流水
- POST
/api/v2/account/bills
限速规则:10次/1s
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| coinId | Integer | 否 | 币种ID |
| bizType | String | 否 | 业务类型 deposit 充值 withdraw 提现 transfer_in 转入 transfer_out 转出 trade_in 买入资产 trade_out 卖出资产 order_fill_fee_income 手续费收入 order_liquidate_fee_income 清算手续费收入 |
| after | Long | 否 | 开始时间之后创建的流水 |
| before | Long | 否 | 结束时间之前创建的流水 |
| limit | Integer | 否 | 返回结果的数量,默认10,最大100 |
请求示例
curl -X POST "https://api-spot.weex.com/api/v2/account/bills" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"coinId": 1}'
返回参数
| 字段名 | 类型 | 字段说明 |
|---|---|---|
| billId | String | 账单ID |
| coinId | Integer | 币种ID |
| coinName | String | 币种名称 |
| bizType | String | 流水账单业务类型 |
| fillSize | String | 成交数量 |
| fillValue | String | 成交价值 |
| deltaAmount | String | 余额变动数量 |
| afterAmount | String | 变动后的余额数量 |
| fees | String | 手续费 |
| cTime | String | 创建时间 |
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1743732387987,
"data": [{
"billId": "601797854712824762",
"coinId": 1,
"coinName": "BTC",
"bizType": "transfer_in",
"fillSize": "0",
"fillValue": "0",
"deltaAmount": "0.0040000000000000",
"afterAmount": "0.0040000000000000",
"fees": "0",
"cTime": "1743479789427"
}]
}