跳到主要内容

查询子账户划转历史(仅适用子账户)

接口描述

查询子账户划转历史

HTTP请求

GET /sapi/v1/sub-account/transfer/subUserHistory

请求权重(IP)

1

请求参数

名称类型是否必需描述
assetSTRINGNO如不提供,返回所有asset 划转记录
typeINTNO1: transfer in, 2: transfer out; 如不提供,返回transfer out方向划转记录
startTimeLONGNO
endTimeLONGNO
limitINTNO默认值: 500
returnFailHistoryBOOLEANNO默认False,返回PROCESS和SUCCESS状态的数据;如果传True返回PROCESS、SUCCESS、FAILURE状态的数据
recvWindowLONGNO
timestampLONGYES
  • 如果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
}
]