curl --request POST \
--url https://whitebit.com/api/v4/convert/estimate \
--header 'Content-Type: application/json' \
--header 'X-TXC-APIKEY: <api-key>' \
--data '
{
"amount": "35,103.1",
"direction": "to",
"from": "BTC",
"to": "USDT"
}
'
{
"id": "123",
"from": "BTC",
"to": "USDT",
"give": "50",
"receive": "1714988.41577452",
"rate": "34299.76831549",
"expireAt": 1699016476
}
Convert Estimate
Get a price estimate for converting between two currencies on WhiteBIT via the V4 API.
POST
/
api
/
v4
/
convert
/
estimate
curl --request POST \
--url https://whitebit.com/api/v4/convert/estimate \
--header 'Content-Type: application/json' \
--header 'X-TXC-APIKEY: <api-key>' \
--data '
{
"amount": "35,103.1",
"direction": "to",
"from": "BTC",
"to": "USDT"
}
'
{
"id": "123",
"from": "BTC",
"to": "USDT",
"give": "50",
"receive": "1714988.41577452",
"rate": "34299.76831549",
"expireAt": 1699016476
}
Authorizations
API Key authentication for private endpoints.
Required headers:
- X-TXC-APIKEY: API key
- X-TXC-PAYLOAD: Base64 encoded JSON payload
- X-TXC-SIGNATURE: HMAC SHA512 signature
Body
application/json
From currency. Example: BTC
Example:
"BTC"
To currency. Example: USDT
Example:
"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
Available options:
from, to Example:
"to"
Amount to convert or receive.
Example:
"35,103.1"
Nonce for request
Example:
1699260637
Request path
Example:
"{{request}}"
Response
Successful response
Quote ID
Example:
"123"
From currency
Example:
"BTC"
To currency
Example:
"USDT"
Amount to give
Example:
"50"
Amount to receive
Example:
"1714988.41577452"
Conversion rate
Example:
"34299.76831549"
Quote expiration timestamp
Example:
1699016476
Was this page helpful?