Create A Swap Promise (quote)
Creates a swap promise for a currency pair. A promise is a short-lived signed quote (JWT) returned in the uuid field that must be sent back to POST /transactions/swap/ to execute the swap before it expires.
The swap can be fiat-to-crypto, crypto-to-fiat or crypto-to-crypto. The amount can be expressed either in from_currency or in to_currency, indicated by amount_currency.
The pair must be enabled for swap for the account (currency availability and per-account rollout apply); otherwise a 409 is returned.
How to obtain the required values:
from_currency/to_currency: enabled swap currencies for the account’s country.amount_currency: must equalfrom_currencyorto_currency.gateway: use"balance"for the balance swap.
Authorization
- Requires a valid API key.
Headers
The API key as a string.
See the Generating Signature section for more details.
A timestamp in milliseconds. See the Timestamp Security section for more details.
An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.
Body
Currency ticker to swap from.
"ARS"
Currency ticker to swap to.
"BTC"
Currency in which amount is expressed. Must equal from_currency or to_currency.
"ARS"
Amount to swap as a decimal string, expressed in amount_currency.
"10000"
Gateway identifier for the swap.
"balance"