Skip to main content

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 NameRequiredTypeDescription
accountTypefalsestringAccount 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.
ccyfalsestringCurrency. 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 NameTypeDescription
uTimestringData update time, Unix timestamp in milliseconds
summaryobjectBalance summary across returned accounts
summary.totalEqUsdstringTotal equity value in USD
summary.totalAvailBalByCcyobjectTotal available balance aggregated by currency
accountsarrayAccount balance list
accounts[].accountTypestringAccount type
accounts[].accountNamestringAccount display name
accounts[].enabledbooleanWhether the account is enabled
accounts[].detailsarrayCurrency balance details under this account
accounts[].details[].ccystringCurrency
accounts[].details[].balstringBalance
accounts[].details[].availBalstringAvailable balance
accounts[].details[].frozenBalstringFrozen balance
accounts[].details[].unrealizedProfitstringUnrealized 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[].equitystringEquity, equal to bal + unrealizedProfit
accounts[].details[].eqUsdstringEquity value in USD
accounts[].details[].uTimestringCurrency 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"
}
]
}
]
}
}