查詢支持的充值幣種信息
通過幣種信息接口,獲取幣鏈組合
提示
該接口不需要做鑒權
HTTP 請求
GET /v5/asset/deposit/query-allowed-list
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
coin | false | string | 充值幣種. coin 和chain 必須配對傳遞,否則是無效查詢 |
chain | false | string | 充值鏈名. coin 和 chain 必須配對傳遞,否則是無效查詢 |
limit | false | integer | 每頁數量限制. [1 , 35 ]. 默認: 10 |
cursor | false | string | 游標,用於翻頁 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
configList | array | Object |
> coin | string | 幣種 |
> chain | string | 鏈名 |
> coinShowName | string | 幣種名稱 |
> chainType | string | 鏈的類型 |
> blockConfirmNumber | integer | 充值上賬確認數 |
> minDepositAmount | string | 最低充值金額 |
nextPageCursor | string | 游標,用於翻頁 |
請求示例
- HTTP
- Python
- Node.js
GET /v5/asset/deposit/query-allowed-list?coin=ETH&chain=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672191495968
X-BAPI-RECV-WINDOW: 5000
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_allowed_deposit_coin_info(
coin="ETH",
chain="ETH",
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getAllowedDepositCoinInfo({
coin:"ETH",
chain:"ETH",
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"configList": [
{
"coin": "ETH",
"chain": "ETH",
"coinShowName": "ETH",
"chainType": "ETH",
"blockConfirmNumber": 10000,
"minDepositAmount": "0.01"
}
],
"nextPageCursor": "eyJwYWdlIjoyLCJsaW1pdCI6MTB9"
},
"retExtInfo": {},
"time": 1672191496219
}