Skip to main content

Get Single Coin Balance

Query the balance of a specific coin in a specific account type. Supports querying sub UID's balance. Also, you can check the transferable amount from master to sub account, sub to master account or sub to sub account, especially for user who has an institutional loan.

info
  • Sub account cannot query master account balance
  • Sub account can only check its own balance
  • Master account can check its own and its sub UIDs balance

HTTP Request

GET /v5/asset/transfer/query-account-coin-balance

Request Parameters

ParameterRequiredTypeComments
memberIdfalsestringUID. Required when querying sub UID balance with master api key
toMemberIdfalsestringUID. Required when querying the transferable balance between different UIDs
accountTypetruestringAccount type
toAccountTypefalsestringTo account type. Required when querying the transferable balance between different account types
cointruestringCoin
withBonusfalseinteger0(default): not query bonus. 1: query bonus
withTransferSafeAmountfalseintegerWhether query delay withdraw/transfer safe amount
withLtvTransferSafeAmountfalseintegerFor OTC loan users in particular, you can check the transferable amount under risk level
  • 0(default):false, 1:true
  • toAccountType is mandatory

Response Parameters

ParameterTypeComments
accountTypestringAccount type
bizTypeintegerBiz type
accountIdstringAccount ID
memberIdstringUid
balanceObject
> coinstringCoin
> walletBalancestringWallet balance
> transferBalancestringTransferable balance
> bonusstringbonus
> transferSafeAmountstringSafe amount to transfer. Keep "" if not query
> ltvTransferSafeAmountstringTransferable amount for ins loan account. Keep "" if not query

Request Example

GET /v5/asset/transfer/query-account-coin-balance?accountType=UNIFIED&coin=USDT&toAccountType=FUND&withLtvTransferSafeAmount=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: xxxxx
X-BAPI-API-KEY: xxxxx
X-BAPI-TIMESTAMP: 1690254520644
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"accountType": "UNIFIED",
"bizType": 1,
"accountId": "1631385",
"memberId": "1631373",
"balance": {
"coin": "USDT",
"walletBalance": "11999",
"transferBalance": "11999",
"bonus": "0",
"transferSafeAmount": "",
"ltvTransferSafeAmount": "7602.4861"
}
},
"retExtInfo": {},
"time": 1690254521256
}