Skip to main content

Get Convert Status

You can query the exchange result by sending quoteTxId. Make sure you input correct account type and quoteTxId, otherwise you cannot find it.

HTTP Request

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

Request Parameters

ParameterRequiredTypeComments
quoteTxIdtruestringQuote tx ID
accountTypetruestringWallet type

Response Parameters

ParameterTypeComments
resultobject
> accountTypestringWallet type
> exchangeTxIdstringExchange tx ID, same as quote tx ID
> userIdstringUser ID
> fromCoinstringFrom coin
> fromCoinTypestringFrom coin type. crypto
> toCoinstringTo coin
> toCoinTypestringTo coin type. crypto
> fromAmountstringFrom coin amount (amount to sell)
> toAmountstringTo coin amount (amount to buy according to exchange rate)
> exchangeStatusstringExchange status
  • init
  • processing
  • success
  • failure
  • > extInfoobjectReserved field, ignored for now
    > convertRatestringExchange rate
    > createdAtstringQuote created time

    Request Example

    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

    Response Example

    {
    "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
    }