Convert Estimate
The endpoint creates a quote for converting one currency to another. Quote lifetime is 10 seconds, then quote will be expired.
The minimum convert size is derived from the resulting proceeds, not a fixed per-pair floor: a request is rejected as too small when rate × amount rounds to zero in the target currency. Account balance is pre-checked at estimate time and re-checked at confirm time, because balance can change within the 10-second quote window. There is an absolute server-side maximum on the conversion amount.
The endpoint can be used to obtain a pre-execution price estimate for a market order. Call the endpoint with the desired amount before placing a market order to see the approximate execution price.
Error message values may be returned as translation keys (for example validation.required) rather than finalized English strings. Treat the code and the field name under errors as the stable contract.
Rate limit: 10000 requests/10 sec.
Used in these guides
- Payment Integration — crypto deposits, withdrawals, conversion, WhiteBIT Codes, and Express Withdraw.
Authorizations
The public WhiteBIT API key.
Base64-encoded JSON request body.
HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).
Body
From currency. Example: BTC
"BTC"
To currency. Example: USDT
"USDT"
Convert amount direction, defines in which currency corresponding "amount" field is populated. Use "to" in case amount is in "to" currency, use "from" if amount is in "from" currency
from, to "to"
Amount to convert or receive. The value is silently truncated to 8 decimal places before evaluation; excess decimals do not raise an error.
"35,103.1"
Nonce for request
1699260637
Request path
"{{request}}"
Response
Successful response
Quote ID
"123"
From currency
"BTC"
To currency
"USDT"
Amount to give
"50"
Amount to receive
"1714988.41577452"
Conversion rate expressed in the from→to direction: units of the 'to' currency received per one unit of the 'from' currency. Example: if from=BTC and to=USDT, a rate of "34299.76" means 1 BTC is worth approximately 34 299.76 USDT at the time of the quote.
"34299.76831549"
Quote expiration timestamp
1699016476
Was this page helpful?