獲取所有子賬戶資產信息(V1)
此接口可獲取所有子帳戶的賬戶信息。
TIP
推薦使用GET /api/v2/sub-accounts
接口進行分頁查詢
HTTP請求
GET /api/v1/sub-accounts
請求示例
GET /api/v1/sub-accounts
[
{
"subUserId":"5caefba7d9575a0688f83c45",
"subName":"kucoin1",
"mainAccounts":[
{
"currency":"BTC",
"balance":"6",
"available":"6",
"holds":"0",
"baseCurrency":"BTC",
"baseCurrencyPrice":"1",
"baseAmount":"1.1"
}
],
"tradeAccounts":[
{
"currency":"BTC",
"balance":"1000",
"available":"1000",
"holds":"0",
"baseCurrency":"BTC",
"baseCurrencyPrice":"1",
"baseAmount":"1.1"
}
],
"marginAccounts":[
{
"currency":"BTC",
"balance":"1.1",
"available":"1.1",
"holds":"0",
"baseCurrency":"BTC",
"baseCurrencyPrice":"1",
"baseAmount":"1.1"
}
]
}
]
API權限
此接口需要通用權限
請求URL
此接口支持現貨URL
頻率限制
管理类权重
:20
請求參數
無
返回值
字段 | 含義 |
---|---|
subUserId | 子帳戶的用戶ID |
subName | 子帳戶的用戶名 |
currency | 幣種 |
balance | 資金總額 |
available | 可用資金 |
holds | 凍結資金 |
baseCurrency | 基準幣種 |
baseCurrencyPrice | 基準貨幣價格 |
baseAmount | 基準貨幣數量 |