Get Unified Account Balances
Get Unified Account Balances
Get balances across Deepcoin account types, including Funding, Spot, USDT Swap, Coin-margined Swap, Bonus, Rebate, Event Contract, Copy Trading, and Robot accounts.
This endpoint is a v1 endpoint. It complements GET /deepcoin/account/balances, which queries balances by trading product type through instType.
Request frequency limit: 10 req/s / 300 req/min
Request URL
GET /deepcoin/account/all-balances
Request Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| accountType | false | string | Account type. Multiple values are separated by commas. Supported values: funding, spot, swapU, swap, bonus, rebate, event, copyTrade, robot, all.swapU means USDT Swap Account, and swap means Coin-margined Swap Account.If not provided, returns all supported account types with non-zero balances. |
| ccy | false | string | Currency. Multiple values are separated by commas, e.g. USDT,BTC.If not provided, returns all non-zero currencies under the matched accounts. |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| uTime | string | Data update time, Unix timestamp in milliseconds |
| summary | object | Balance summary across returned accounts |
| summary.totalEqUsd | string | Total equity value in USD |
| summary.totalAvailBalByCcy | object | Total available balance aggregated by currency |
| accounts | array | Account balance list |
| accounts[].accountType | string | Account type |
| accounts[].accountName | string | Account display name |
| accounts[].enabled | boolean | Whether the account is enabled |
| accounts[].details | array | Currency balance details under this account |
| accounts[].details[].ccy | string | Currency |
| accounts[].details[].bal | string | Balance |
| accounts[].details[].availBal | string | Available balance |
| accounts[].details[].frozenBal | string | Frozen balance |
| accounts[].details[].unrealizedProfit | string | Unrealized profit. Spot, USDT Swap, and Coin-margined Swap accounts are aggregated by currency; other accounts return 0 when there is no position profit. |
| accounts[].details[].equity | string | Equity, equal to bal + unrealizedProfit |
| accounts[].details[].eqUsd | string | Equity value in USD |
| accounts[].details[].uTime | string | Currency balance update time, Unix timestamp in milliseconds |
Request Example
GET /deepcoin/account/all-balances?accountType=funding,spot,swapU&ccy=USDT
Response Example
{
"code": "0",
"msg": "",
"data": {
"uTime": "1777449600000",
"summary": {
"totalEqUsd": "11845.50",
"totalAvailBalByCcy": {
"USDT": "11830.00"
}
},
"accounts": [
{
"accountType": "funding",
"accountName": "Funding Account",
"enabled": true,
"details": [
{
"ccy": "USDT",
"bal": "1930.00",
"availBal": "1930.00",
"frozenBal": "0",
"unrealizedProfit": "0",
"equity": "1930.00",
"eqUsd": "1930.00",
"uTime": "1777449600000"
}
]
},
{
"accountType": "spot",
"accountName": "Spot Account",
"enabled": true,
"details": [
{
"ccy": "USDT",
"bal": "9900.00",
"availBal": "9900.00",
"frozenBal": "0",
"unrealizedProfit": "15.50",
"equity": "9915.50",
"eqUsd": "9915.50",
"uTime": "1777449600000"
}
]
}
]
}
}