查詢延遲提幣凍結金額
信息
如何會導致部分資金被要求延遲提幣?
- 鏈上充值: 鏈上區塊確認數未達到風險可控程度, 部分資金被凍結一段時間, 直到解凍
- 買幣: 若存在風險, 則一定時間內被凍結, 無法提幣
HTTP 請求
GET /v5/asset/withdraw/withdrawable-amount
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
coin | true | string | 幣種敏誠 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
limitAmountUsd | string | 延遲提幣凍結金額 (USD) |
withdrawableAmount | Object | |
> SPOT | Object | 現貨錢包, 若該錢包被移除, 則不會返回該對象 |
>> coin | string | 幣種名稱 |
>> withdrawableAmount | string | 可提現金額 |
>> availableBalance | string | 可用餘額 |
> FUND | Object | 資金錢包 |
>> coin | string | 幣種名稱 |
>> withdrawableAmount | string | 可提現金額 |
>> availableBalance | string | 可用餘額 |
請求示例
- 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);
});
響應示例
{
"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
}