Convert Estimate
Request a price estimate for converting one asset into another before confirming the swap.
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
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.
"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
"34299.76831549"
Quote expiration timestamp
1699016476