Skip to main content

Wallet Balance

Get wallet balance

HTTP Request

GET /unified/v3/private/account/wallet/balance

Request Parameters

ParameterRequiredTypeComments
coinfalsestringCoin name

Response Parameters

ParameterTypeComments
accountIMRatestringInitial Margin Rate: Account Total Initial Margin Base Coin / Account Margin Balance Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
accountMMRatestringMaintenance Margin Rate: Account Total Maintenance Margin Base Coin / Account Margin Balance Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
totalEquitystringEquity of account converted to usd:Account Margin Balance Base Coin + Account Option Value Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
totalWalletBalancestringWallet Balance of account converted to usd:∑ Asset Wallet Balance Base Coin。In non-uniform margin mode, the field will be returned as an empty string.
totalMarginBalancestringMargin Balance of account converted to usd:Account Wallet Balance Base Coin + Account Perp UPL Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
totalAvailableBalancestringAvailable Balance of account converted to usd:RM:Account Margin Balance Base Coin - Account Initial Margin Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
totalPerpUPLstringUnrealised P&L of perpetuals of account converted to usd:∑ Asset Perp UPL Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
totalInitialMarginstringInitial Margin of account converted to usd:∑ Asset Total Initial Margin Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
totalMaintenanceMarginstringMaintenance Margin of account converted to usd: ∑ Asset Total Maintenance Margin Base Coin. In non-uniform margin mode, the field will be returned as an empty string.
coinarrayObject
> currencyCoinstringCoin name, such as BTC, ETH, USDT, USDC
> availableToBorrowstringDepreciated field, always return "" due to feature of main-sub uid sharing borrow quota
> borrowSizestringLending amount used. For USDC and USDT only. For BTC and ETH, return 0
> bonusstringTrial fund
> accruedIntereststringAccrued interest of an asset
> availableBalanceWithoutConvertstringAvailable balance, Margin Balance - Total Initial Margin
> totalOrderIMstringOrder margin pre-occupied. For portfolio margin mode, it returns ""
> equitystringEquity
> totalPositionMMstringSum of maintenance margin for all positions. For portfolio margin mode, it returns ""
> usdValuestringusd value
> availableBalancestringAB from other assets + the actual AB balance from the current assets (cannot be negative)
> unrealisedPnlstringUnrealised P&L
> totalPositionIMstringSum of initial margin of all positions + Pre-occupied liquidation fee. For portfolio margin mode, it returns ""
> marginBalanceWithoutConvertstringMargin balance
> walletBalancestringWallet balance
> cumRealisedPnlstringCumulative Realised P&L
> marginBalancestringMB from other assets + the actual MB balance from the current assets

Request Example

GET /unified/v3/private/account/wallet/balance?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672021457498
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "Success",
"result": {
"totalEquity": "5952.13539158",
"accountIMRate": "0.1037",
"totalMarginBalance": "6003.96034690",
"totalInitialMargin": "622.37237856",
"totalAvailableBalance": "5381.58796835",
"accountMMRate": "0.0361",
"totalPerpUPL": "-733.16272882",
"totalWalletBalance": "6733.45726207",
"totalMaintenanceMargin": "216.49590186",
"coin": [
{
"currencyCoin": "ETH",
"availableToBorrow": "0.00000000",
"borrowSize": "0.00000000",
"bonus": "0.00000000",
"accruedInterest": "0.00000000",
"availableBalanceWithoutConvert": "0.00000000",
"totalOrderIM": "",
"equity": "0.00000000",
"totalPositionMM": "",
"usdValue": "0.00000000",
"availableBalance": "4.41128415",
"unrealisedPnl": "",
"totalPositionIM": "",
"marginBalanceWithoutConvert": "0.00000000",
"walletBalance": "0.00000000",
"cumRealisedPnl": "",
"marginBalance": "4.92144238"
}
]
},
"retExtInfo": {},
"time": 1672021457963
}