Execute A Balance Swap From A Promise
Executes a swap using a previously created promise (the uuid token returned by POST /transactions/quotes/).
The swap moves the user’s balance: the from_currency is debited and, once the underlying trade completes, the to_currency is credited. The transaction is created in PRO (processing) status and completes asynchronously.
The promise must be valid (not expired, not already used) and the account must have enough from_currency balance.
How to obtain the required values:
promise: theuuidfield returned by create_swap_promise.
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
The swap promise token (uuid) returned by POST /transactions/quotes/.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Response
Swap transaction created successfully.