獲取單個子賬戶資產信息

此接口可獲取單個子帳戶的賬戶信息。

HTTP請求

GET /api/v1/sub-accounts/{subUserId}

請求示例

GET /api/v1/sub-accounts/5caefba7d9575a0688f83c45?includeBaseAmount=false

{
    "subUserId":"5caefba7d9575a0688f83c45",
    "subName":"sdfgsdfgsfd",
    "mainAccounts":[
        {
            "currency":"BTC",
            "balance":"8",
            "available":"8",
            "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

頻率限制

管理类权重:15

請求參數
請求參數 類型 是否必須 含義
subUserId String 路徑參數,子帳戶的用戶Id
includeBaseAmount boolean false:不展示資產為0的幣種,true:展示資產為0的幣種
返回值
字段 含義
subUserId 子帳戶的用戶Id
subName 子帳戶的用戶名
currency 幣種
balance 資金總額
available 可用資金
holds 凍結資金
baseCurrency 基準幣種
baseCurrencyPrice 基準貨幣價格
baseAmount 基準貨幣數量