Skip to content

Initiate a currency swap

POST
/v2/swap

Start a new currency swap transaction

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
sourceCurrency
required

The source currency for the swap

string
USD
destinationCurrency
required

The destination currency for the swap

string
EUR
amount
required

The amount to swap

string
100.00
walletId
required

The wallet ID for the swap

string
wallet-123

Returns the full transaction record using read-after-write.

object
transactionId
required

The transaction ID

string
swap-123
status
required

The transaction status

string
completed
sourceCurrency
required

The source currency

string
USD
destinationCurrency
required

The destination currency

string
EUR
amount
required

The amount

string
100.00

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error