Skip to main content

Get Convert History

Returns all the convert history

HTTP Request

GET /v5/fiat/query-trade-history

Request Parameters

ParameterRequiredTypeComments
indexfalseintegerPage number,started from 1, default 1
limitfalseintegerPage Size [20-100] 20 records by default,up to 100 records, return 100 when exceeds 100
startTimefalsestringQuery start time(Millisecond timestamp)
endTimefalsestringQuery end time(Millisecond timestamp)

Response Parameters

ParameterTypeComments
resultarrayArray of quotes
> 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 timee (Millisecond timestamp)
> subUserIdstringThe user's sub userId in bybit

Request Example

GET /v5/fiat/trade-query-history 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": "1764560093588",
"subUserId": "123456"
}
]
}