Exchange at a fixed rate
Execute an exchange using a valid quote from /v2/exchange/calculate.
ts_release), with the quote’s currencies, the same amount field and amount, and its price exactly as returned. Each quote can be used for one request only.
For every error this endpoint returns and what it means, see API errors: Exchange at a fixed rate.Headers
Hex-encoded HMAC-SHA512 signature of the request body, generated using your secret key.
Body
Currency to exchange from. For a list of all available currencies, see API currency codes.
Currency to exchange to. For a list of all available currencies, see API currency codes.
Unique ID of this exchange in your system, up to 255 characters. It must be unique among your withdrawals and exchanges, and it's case-insensitive.
255The quote's price from /v2/exchange/calculate (units of receiver_currency for 1 unit of sender_currency), exactly as returned: a rounded value or one with extra trailing zeros doesn't match the quote.
"0.99978134"
The amount you want to exchange, in sender_currency, as a decimal string (for example, "100") or a number. Include either this parameter or receiver_amount, not both. It must be the amount field and amount of the quote from /v2/exchange/calculate.
Up to 8 decimal places.
The amount you want to receive, in receiver_currency, before the exchange fee, as a decimal string (for example, "100") or a number. Include either this parameter or sender_amount, not both. It must be the amount field and amount of the quote from /v2/exchange/calculate.
Up to 8 decimal places.
Response
Created