Get Withdrawable Amount
info
How can partial funds be subject to delayed withdrawal requests?
- On-chain deposit: If the number of on-chain confirmations has not reached a risk-controlled level, a portion of the funds will be frozen for a period of time until they are unfrozen.
- Buying crypto: If there is a risk, the funds will be frozen for a certain period of time and cannot be withdrawn.
HTTP Request
GET /v5/asset/withdraw/withdrawable-amount
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | true | string | Coin name, uppercase only |
Response Parameters
Parameter | Type | Comments |
---|---|---|
limitAmountUsd | string | The frozen amount due to risk, in USD |
withdrawableAmount | Object | |
> SPOT | Object | Spot wallet, it is not returned if spot wallet is removed |
>> coin | string | Coin name |
>> withdrawableAmount | string | Amount that can be withdrawn |
>> availableBalance | string | Available balance |
> FUND | Object | Funding wallet |
>> coin | string | Coin name |
>> withdrawableAmount | string | Amount that can be withdrawn |
>> availableBalance | string | Available balance |
Request Example
- HTTP
- Python
- Node.js
GET /v5/asset/withdraw/withdrawable-amount?coin=USDT HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677565621998
X-BAPI-RECV-WINDOW: 50000
X-BAPI-SIGN: XXXXXX
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_withdrawable_amount(
coin="USDT",
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getWithdrawableAmount({
coin: 'USDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"limitAmountUsd": "52853.5551",
"withdrawableAmount": {
"FUND": {
"coin": "USDT",
"withdrawableAmount": "11135.0596",
"availableBalance": "11135.0596"
},
"SPOT": {
"coin": "USDT",
"withdrawableAmount": "0",
"availableBalance": "0"
}
}
},
"retExtInfo": {},
"time": 1677565632151
}