查询子账户划转历史(仅适用子账户)
接口描述
查询子账户划转历史
HTTP请求
GET /sapi/v1/sub-account/transfer/subUserHistory
请求权重(IP)
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
asset | STRING | NO | 如不提供,返回所有asset 划转记录 |
type | INT | NO | 1: transfer in, 2: transfer out; 如不提供,返回transfer out方向划转记录 |
startTime | LONG | NO | |
endTime | LONG | NO | |
limit | INT | NO | 默认值: 500 |
returnFailHistory | BOOLEAN | NO | 默认False ,返回PROCESS和SUCCESS状态的数据;如果传True 返回PROCESS、SUCCESS、FAILURE状态的数据 |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
- 如果startTime和endTime均未发送,默认只返回最近30天数据
响应示例
[
{
"counterParty":"master",
"email":"master@test.com",
"type":1, // 1 for transfer in , 2 for transfer out
"asset":"BTC",
"qty":"1",
"fromAccountType":"SPOT",
"toAccountType":"SPOT",
"status":"SUCCESS", // status: PROCESS / SUCCESS / FAILURE
"tranId":11798835829,
"time":1544433325000
},
{
"counterParty": "subAccount",
"email": "sub2@test.com",
"type": 1,
"asset":"ETH",
"qty":"2",
"fromAccountType":"SPOT",
"toAccountType":"COIN_FUTURE",
"status":"SUCCESS",
"tranId":11798829519,
"time":1544433326000
}
]