查詢幣種信息
獲取幣種信息,包括鏈信息,是否可充可提
HTTP 請求
GET /v5/asset/coin/query-info
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
coin | false | string | 幣種 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
rows | array | Object |
> name | integer | 幣種名稱 |
> coin | string | 幣種 |
> remainAmount | string | 單筆提現最大數量 |
> chains | array | Object |
>> chain | string | 鏈名 |
>> chainType | string | 鏈類型 |
>> confirmation | string | 充值上賬確認數 |
>> withdrawFee | string | 提現手續費. 如果提現費為空,則表示該幣不支持提現 |
>> depositMin | string | 最小充值數量 |
>> withdrawMin | string | 最小提現數量 |
>> minAccuracy | string | 充提幣的最小精度 |
>> chainDeposit | string | 幣鏈是否可充值. 0 : 暫停. 1 : 正常 |
>> chainWithdraw | string | 幣鏈是否可提幣. 0 : 暫停. 1 : 正常 |
>> withdrawPercentageFee | string | 提現手續費百分比. 該字段的值是實際數字,即0.022表示為2.2% |
請求示例
- HTTP
- Python
- Node.js
GET /v5/asset/coin/query-info?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672194580887
X-BAPI-RECV-WINDOW: 5000
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_coin_info(
coin="ETH",
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getCoinInfo('ETH')
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "",
"result": {
"rows": [
{
"name": "ETH",
"coin": "ETH",
"remainAmount": "1020000",
"chains": [
{
"chainType": "ETH",
"confirmation": "10000",
"withdrawFee": "0.005",
"depositMin": "0.01",
"withdrawMin": "0.02",
"chain": "ETH",
"chainDeposit": "1",
"chainWithdraw": "1",
"minAccuracy": "8",
"withdrawPercentageFee": "0.022"
},
{
"chainType": "Arbitrum One",
"confirmation": "10",
"withdrawFee": "0.01",
"depositMin": "0.001",
"withdrawMin": "0.1",
"chain": "ARBI",
"chainDeposit": "1",
"chainWithdraw": "1",
"minAccuracy": "8",
"withdrawPercentageFee": "0"
}
]
}
]
},
"retExtInfo": {},
"time": 1677478088215
}