跳至主要内容

查詢報價單狀態

信息
  • 您可以通過quoteTxId指定查詢某筆被確認的報價單
  • 確保傳入匹配的錢包類型和報價單號, 否則會查不到

HTTP 請求

GET /v5/asset/exchange/convert-result-query

請求參數

參數是否必需類型說明
quoteTxIdtruestring報價單號
accountTypetruestring錢包類型

響應參數

參數類型說明
resultobject
> accountTypestring錢包類型
> exchangeTxIdstring報價單ID, 和quoteTxId保持一致
> userIdstring用戶ID
> fromCoinstring兌出幣種
> fromCoinTypestring兌出幣種類型. crypto
> toCoinstring兌入幣種
> toCoinTypestring兌入幣種類型. crypto
> fromAmountstring兌出幣種數量
> toAmountstring兌入幣種數量
> exchangeStatusstring兌換狀態
  • init
  • processing
  • success
  • failure
  • > extInfoobject保留字段, 當前可忽略
    > convertRatestring兌換率
    > createdAtstring報價單創建時間

    請求示例

    GET /v5/asset/exchange/convert-result-query?quoteTxId=10100108106409343501030232064&accountType=eb_convert_funding HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1720073659847
    X-BAPI-RECV-WINDOW: 5000

    響應示例

    {
    "retCode": 0,
    "retMsg": "ok",
    "result": {
    "result": {
    "accountType": "eb_convert_funding",
    "exchangeTxId": "10100108106409343501030232064",
    "userId": "XXXXX",
    "fromCoin": "ETH",
    "fromCoinType": "crypto",
    "fromAmount": "0.1",
    "toCoin": "BTC",
    "toCoinType": "crypto",
    "toAmount": "0.00534882723991",
    "exchangeStatus": "success",
    "extInfo": {},
    "convertRate": "0.0534882723991",
    "createdAt": "1720071899995"
    }
    },
    "retExtInfo": {},
    "time": 1720073660696
    }