跳至主要内容

查詢兌換幣種列表

您可以通過該接口獲取到各個帳戶內的兌入兌出幣種列表

HTTP 請求

GET /v5/asset/exchange/query-coin-list

請求參數

參數是否必需類型說明
coinfalsestring兌出幣種
  • 當side=0時, 該字段會被忽略
  • sidefalseinteger0: 查詢兌出幣種列表, 會返回幣種餘額
    1: 有傳coin的話, 會根據兌出幣種查詢支持的兌入幣種列表
    accountTypetruestring錢包類型
  • eb_convert_funding
  • eb_convert_uta
  • eb_convert_spot
  • eb_convert_contract
  • eb_convert_inverse
  • 響應參數

    參數類型說明
    coinsarray<object>幣種信息
    > coinstring幣種
    > fullNamestring完整幣種名
    > iconstring幣種圖標url
    > iconNightstring幣種圖標url (夜間模式)
    > accuracyLengthinteger幣種精度
    > coinTypestring幣種類型. crypto(加密貨幣)
    > balancestring幣種餘額
  • 只有當side=0時, 會返回餘額, 否則, 返回""
  • > uBalancestring幣種折成USDT的價值
    > singleFromMinLimitstring單筆交易最小兌出幣種數量
    > singleFromMaxLimitstring單筆交易最大兌出幣種數量
    > disableFrombooleantrue: 該幣種禁止兌出, false: 該幣種允許兌出
    > disableTobooleantrue: 該幣入禁止兌出, false: 該幣種允許兌入
    > timePeriodinteger保留字段, 當前可忽略
    > singleToMinLimitstring保留字段, 當前可忽略
    > singleToMaxLimitstring保留字段, 當前可忽略
    > dailyFromMinLimitstring保留字段, 當前可忽略
    > dailyFromMaxLimitstring保留字段, 當前可忽略保留字段, 當前可忽略
    > dailyToMinLimitstring保留字段, 當前可忽略
    > dailyToMaxLimitstring保留字段, 當前可忽略

    請求示例

    GET /v5/asset/exchange/query-coin-list?side=0&accountType=eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720064061248
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "coins": [
    {
    "coin": "BTC",
    "fullName": "BTC",
    "icon": "https://t1.bycsi.com/app/assets/token/0717b8c28c2373bf714c964195411d0f.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/9504b4c841194cc38f04041003ffbfdb.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "0",
    "uBalance": "0",
    "timePeriod": 0,
    "singleFromMinLimit": "0.001",
    "singleFromMaxLimit": "1",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    },
    ...
    {
    "coin": "SOL",
    "fullName": "SOL",
    "icon": "https://s1.bycsi.com/app/assets/token/87ca5f1ca7229bdf0d9a16435653007c.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/383a834046655ffe5ef1be1a025791cc.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "18.05988133",
    "uBalance": "2458.46990211775033220586588327",
    "timePeriod": 0,
    "singleFromMinLimit": "0.1",
    "singleFromMaxLimit": "1250",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    },
    ...
    {
    "coin": "ETH",
    "fullName": "ETH",
    "icon": "https://s1.bycsi.com/app/assets/token/d6c17c9e767e1810875c702d86ac9f32.svg",
    "iconNight": "https://t1.bycsi.com/app/assets/token/9613ac8e7d62081f4ca20488ae5b168d.svg",
    "accuracyLength": 8,
    "coinType": "crypto",
    "balance": "0.80264489",
    "uBalance": "2596.09751650032773106431534138",
    "timePeriod": 0,
    "singleFromMinLimit": "0.01",
    "singleFromMaxLimit": "250",
    "singleToMinLimit": "0",
    "singleToMaxLimit": "0",
    "dailyFromMinLimit": "0",
    "dailyFromMaxLimit": "0",
    "dailyToMinLimit": "0",
    "dailyToMaxLimit": "0",
    "disableFrom": false,
    "disableTo": false
    }
    ]
    },
    "retExtInfo": {},
    "time": 1720064061736
    }