Skip to main content

Request a Quote

info

Request by the master UID's api key only

HTTP Request​

POST/v5/fiat/quote-apply

Request Parameters​

ParameterRequiredTypeComments
fromCointruestringConvert from coin (coin to sell)
fromCoinTypetruestringfiat or crypto
toCointruestringConvert to coin (coin to buy)
toCoinTypetruestringfiat or crypto
requestAmounttruestringrequest coin amount (the amount you want to sell)
requestCoinTypefalsestringcoinType you want to sell, fiat or crypto, default to fiat

Response Parameters​

ParameterTypeComments
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)
expiredTimestringThe expiry time for this quote (milliseconds)

Request Example​

POST /v5/fiat/quote-apply HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1720071077014
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX
Content-Type: application/json
Content-Length: 172

{
"fromCoin": "ETH",
"fromCoinType": "fiat",
"toCoin": "BTC",
"toCoinType": "crypto",
"requestAmount": "0.1",
}

Response Example​

{
"retCode": 0,
"retMsg": "success",
"result": {
"quoteTaxId": "QuoteTaxId123456",
"exchangeRate": "1.0",
"fromCoin": "ETH",
"fromCoinType": "fiat",
"toCoin": "BTC",
"toCoinType": "crypto",
"fromAmount": "0.1",
"toAmount": "0.1",
"expireTime": "1764561045346"
}
}