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 frequency limit: 1/1s
Request URL
GET /deepcoin/account/balances
Request Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| instType | true | string | Product type Spot: SPOTContract: SWAP |
| ccy | false | string | Currency, e.g.USDTIf not provided, returns all assets |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| ccy | string | Currency |
| bal | string | Balance |
| frozenBal | string | Frozen (unavailable) |
| availBal | string | Available balance |
| unrealizedProfit | string | Unrealized profit aggregated by currency. For SPOT, returns the spot unrealized profit aggregated by currency; for SWAP, returns the contract unrealized profit aggregated by currency |
| equity | string | Equity, 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"
}
]
}