v1

latestOpenAPI 3.0.02026-07-2613985.6 KB
Exchange

Exchange at a fixed exchange rate

Execute an exchange using a valid fixed quote from /exchange/calculate.

post/exchange/fixed

Headers

X-Processing-Signaturestring required

Hex-encoded HMAC-SHA512 signature of the request body, generated using your secret key.

Request body

sender_currencystring required

Currency to exchange from. For a list of all available currencies, see API currency codes.

receiver_currencystring required

Currency to exchange to. For a list of all available currencies, see API currency codes.

sender_amountnumber

Amount to send. You must include either this parameter or receiver_amount. This value must match the quote returned by /exchange/calculate.

receiver_amountnumber

Amount to receive. You must include either this parameter or sender_amount. This value must match the quote returned by /exchange/calculate.

foreign_idstring required

Unique ID of the exchange transaction.

pricenumber required

The quoted exchange rate from /exchange/calculate, expressed as units of receiver_currency for 1 unit of sender_currency. This value must match the quote.

Response

Created