When to use Convert
| Feature | Convert | Spot Trading |
|---|---|---|
| Execution | Instant at quoted rate | Depends on orderbook liquidity |
| Orderbook | No orderbook interaction | Orders placed on the orderbook |
| Order types | Single quote-and-confirm flow | 6 order types (limit, market, stop-limit, stop-market, OCO, bulk) |
| Best for | Quick conversions, price estimation | Advanced trading strategies, precise price control |
Convert also serves as a price estimation tool. Call the estimate endpoint before placing a market order to preview the approximate execution price.
Conversion flow
The conversion flow has two steps: estimate and confirm.Request a quote
Send a
POST request to /api/v4/convert/estimate with the following parameters: from (source ticker), to (destination ticker), direction ("from" or "to"), and amount. The response includes id (quote identifier), give, receive, rate, and expireAt.Confirm the quote
Send a
POST request to /api/v4/convert/confirm with quoteId set to the id returned by the estimate. The response returns finalGive and finalReceive.Conversion quotes expire after 10 seconds. If the quote expires before confirmation, request a new estimate.
API endpoints
Convert uses 3 authenticated endpoints. All require HMAC-SHA512 signing.| Endpoint | Purpose | Rate limit |
|---|---|---|
POST /api/v4/convert/estimate | Request a conversion quote | 10,000 req / 10 sec |
POST /api/v4/convert/confirm | Confirm and execute a quote | 10,000 req / 10 sec |
POST /api/v4/convert/history | Retrieve conversion history (max 6 months) | 10,000 req / 10 sec |
Estimate parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Source currency ticker (e.g., BTC) |
to | string | Yes | Destination currency ticker (e.g., USDT) |
direction | string | Yes | "from" = amount is in source currency; "to" = amount is in destination currency |
amount | string | Yes | Amount to convert or receive |
Code example
Estimate a BTC-to-USDT conversion and confirm the quote.- cURL
- Python
History filters
The history endpoint supports filtering byfromTicker, toTicker, quoteId, and time range (from/to timestamps). The default limit is 100 records. The maximum history depth is 6 months from the current month.
Convert in payment flows
Convert is commonly used as part of the withdrawal flow when the currency held in Main balance differs from the currency an end user needs to withdraw. The pattern is: transfer Main → Trade, convert, transfer Trade → Main, then withdraw. For the full step-by-step withdrawal-with-conversion flow including code examples, see Payment Integration.What’s next
Payment Integration
Deposit and withdrawal flows including conversion.
Spot Trading
Place orders on the orderbook with 6 order types.
WhiteBIT Codes
Transfer funds between accounts using fee-free digital vouchers.