跳到主要内容

查询托管子账户资产快照(适用投资人母账户)

接口描述

查询托管子账户资产快照

HTTP请求

GET /sapi/v1/managed-subaccount/accountSnapshot

请求权重(IP)

2400

请求参数

名称类型是否必需描述
emailSTRINGYES
typeSTRINGYES"SPOT"(现货), "MARGIN"(全仓), "FUTURES"(U本位合约)
startTimeLONGNO
endTimeLONGNO
limitINTNOmin 7, max 30, default 7
recvWindowLONGNO
timestampLONGYES
  • 查询时间范围最大不得超过30天
  • 仅支持查询最近 1 个月数据
  • 若startTime和endTime没传,则默认返回最近7天数据

响应示例

{
"code":200, // 200表示返回正确,否则即为错误码
"msg":"", // 与错误码对应的报错信息
"snapshotVos":[
{
"data":{
"balances":[
{
"asset":"BTC",
"free":"0.09905021",
"locked":"0.00000000"
},
{
"asset":"USDT",
"free":"1.89109409",
"locked":"0.00000000"
}
],
"totalAssetOfBtc":"0.09942700"
},
"type":"spot",
"updateTime":1576281599000
}
]
}

{
"code":200, // 200表示返回正确,否则即为错误码
"msg":"", // 与错误码对应的报错信息
"snapshotVos":[
{
"data":{
"marginLevel":"2748.02909813",
"totalAssetOfBtc":"0.00274803",
"totalLiabilityOfBtc":"0.00000100",
"totalNetAssetOfBtc":"0.00274750",
"userAssets":[
{
"asset":"XRP",
"borrowed":"0.00000000",
"free":"1.00000000",
"interest":"0.00000000",
"locked":"0.00000000",
"netAsset":"1.00000000"
}
]
},
"type":"margin",
"updateTime":1576281599000
}
]
}

{
"code":200, // 200表示返回正确,否则即为错误码
"msg":"", // 与错误码对应的报错信息
"snapshotVos":[
{
"data":{
"assets":[
{
"asset":"USDT",
"marginBalance":"118.99782335",
"walletBalance":"120.23811389"
}
],
"position":[
{
"entryPrice":"7130.41000000",
"markPrice":"7257.66239673",
"positionAmt":"0.01000000",
"symbol":"BTCUSDT",
"unRealizedProfit":"1.24029054" //只显示开仓当时的未实现盈亏,不会实时更新,可以忽略
}
]
},
"type":"futures",
"updateTime":1576281599000
}
]
}