Create a swap
Create a token swap. A swap exchanges one stablecoin for another between a source wallet and a destination wallet (owned by a user or an external wallet).
The source and destination currency must be different. Provide exactly one of
source.amount or destination.amount — the other side is derived from the quote.
Provide exactly one of destination.walletId or destination.externalWalletId.
Depending on the pricing model, the swap may be created directly or returned in an
OPEN_QUOTE state that must be accepted before execution.
Authorizations
Body
Swap details. Source and destination currencies must differ, exactly one of
source.amount / destination.amount must be provided, and exactly one of
destination.walletId / destination.externalWalletId must be provided.
Swap creation payload. Source and destination currencies must differ, exactly one
of source.amount / destination.amount must be set, and exactly one of
destination.walletId / destination.externalWalletId must be set.
Response
Swap created successfully.
A token swap.