Skip to main content

Get Trading Account Balance

Get Trading Account Balance​

Get all assets in the trading account, including balance, frozen, available amount, unrealized profit, and equity for each currency.

Request URL​

GET /deepcoin/account/balances

Request Parameters​

Field NameRequiredTypeDescription
instTypetruestringProduct type
Spot: SPOT
Contract: SWAP
ccyfalsestringCurrency, e.g.USDT
If not provided, returns all assets

Response Parameters​

Field NameTypeDescription
ccystringCurrency
balstringBalance
frozenBalstringFrozen (unavailable)
availBalstringAvailable balance
unrealizedProfitstringUnrealized profit aggregated by currency. For SPOT, returns the spot unrealized profit aggregated by currency; for SWAP, returns the contract unrealized profit aggregated by currency
equitystringEquity, equal to bal + unrealizedProfit

Response Example​

{
"code": "0",
"msg": "",
"data": [
{
"ccy": "USDT",
"bal": "41473433.53",
"frozenBal": "192.05",
"availBal": "41473234.12",
"unrealizedProfit": "-352.18",
"equity": "41473081.35"
},
{
"ccy": "BTC",
"bal": "0.99715276",
"frozenBal": "0.00135139",
"availBal": "0.99448105",
"unrealizedProfit": "0.01234567",
"equity": "1.00949843"
}
]
}