post https://api-sandbox.straitsx.com/v1/swap/transactions
[Available in Production/Sandbox environment] Execute a requested swap quote.
When the status of the swap transaction is updated, a callback will be sent to the URL you configured in your business dashboard. Learn more about how to configure your callback
Sample Callback Payload for Swap Transaction
{
"data": {
"attributes": {
"createdAt": "2024-04-03T13:56:05.219+08:00",
"customerProfileId": "",
"fees": [
{
"type": "TransactionFee",
"amount": 13.3,
"currency": "XSGD"
}
],
"fixedSide": "target",
"idempotencyId": "sang_test3",
"quoteId": "8185705a-857d-4e0c-a0e0-8453b3cf4929",
"rate": 0.7516,
"sourceCurrency": "XSGD",
"sourceCurrencyAmount": 13304.95,
"status": "completed",
"swapPair": "XSGDUSDC",
"targetCurrency": "USDC",
"targetCurrencyAmount": 10000.0,
"totalSourceCurrencyAmount": 13318.25,
"updatedAt": "2024-04-03T18:25:51.936+08:00"
},
"id": "contract_ff8c902f245f4124b1f28bed306f9b8b",
"type": "swapTransaction"
}
}