跳到主要内容

获取子账户的现货账户资产信息

限速规则 10次/1s (UID)

描述

独立经纪商母账户获取子账户的现货账户资产信息

HTTP请求

  • GET /api/v2/broker/account/subaccount-spot-assets
请求示例
curl "https://api.bitget.com/api/v2/broker/account/subaccount-spot-assets?subUid=111111" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"

请求参数

参数名参数类型是否必须描述
subUidString子账户uid
coinString币种,如BTC,详见币种列表
assetTypeString资产类型
hold_only持仓币种
all全部币种
该字段用于返回多币种持仓数据。默认值为hold_only
当不传coin,只传assetType时,则返回全部符合条件的币种。当同时传参coin及assetType时,coin优先级更高
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1695785115457,
"data": {
"assetsList": [
{
"coin": "BTC",
"available": "100.00000000",
"frozen": "0.00000000",
"locked": "0.00000000",
"uTime": "1692105973000"
},
{
"coin": "USDT",
"available": "100.00000000",
"frozen": "0.00000000",
"locked": "0.00000000",
"uTime": "1692105971000"
},
{
"coin": "ETH",
"available": "100000.00000000",
"frozen": "0.00000000",
"locked": "0.00000000",
"uTime": "1695024539000"
}
]
}
}

返回参数

返回字段参数类型字段说明
assetsListList<Object>现货资产列表
coinString币种名称
availableString可用资产
frozenString冻结资产
lockedString锁仓资产
uTimeString更新时间