Skip to main content

Get Convert Status

Returns the details of this convert.

HTTP Request

GET /v5/fiat/trade-query

Request Parameters

ParameterRequiredTypeComments
tradeNofalsestringTrade order No,tradeNo or merchantRequestId must be provided
merchantRequestIdfalsestringCustomised request ID,tradeNo or merchantRequestId must be provided

Response Parameters

ParameterTypeComments
resultobjectobject
> tradeNostringTrade order No
> statusstringTrade status:
  • processing
  • success
  • failed
> quoteTxIdstringQuote transaction ID. It is system generated, and it is used to confirm quote
> exchangeRatestringExchange rate
> fromCoinstringConvert from coin (coin to sell)
> fromCoinTypestringFrom coin type. fiat or crypto
> toCoinstringConvert to coin (coin to buy)
> toCoinTypestringTo coin type. fiat or crypto
> fromAmountstringFrom coin amount (amount to sell)
> toAmountstringTo coin amount (amount to buy according to exchange rate)
> createdAtstringTrade created time
> subUserIdstringThe user's sub userId in bybit

Request Example

GET /v5/fiat/trade-query?tradeNo=TradeNo123456 HTTP/1.1  
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1720074159814
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"tradeNo": "TradeNo123456",
"status": "success",
"quoteTaxId": "QuoteTaxId123456",
"exchangeRate": "1.0",
"fromCoin": "GEL",
"fromCoinType": "fiat",
"toCoin": "USDT",
"toCoinType": "crypto",
"fromAmount": "100",
"toAmount": "100",
"createdAt": "1764558832014",
"subUserId": "123456"
}
}