Execute a pending quote. The quote must not be expired or already executed. On success, the trade is completed atomically and the balances are updated.
curl --request POST \
--url https://api.nxos.io/v1/quotes/{quoteId}/execute \
--header 'Authorization: <authorization>'{
"object": "trade",
"transactionId": "txn_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5",
"quoteId": "quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"fromAsset": "USD",
"toAsset": "USDC",
"fromAmount": "10000.00",
"toAmount": "9997.000000",
"status": "COMPLETED",
"createdAt": "2025-03-15T14:31:00.000Z"
}Bearer token. Format: Bearer <api_key>
The request has succeeded.
Result of executing a quote.
Object type. Always trade.
trade Unique transaction identifier.
The quote that was executed.
Source asset code.
Destination asset code.
Source amount in major units.
Destination amount in major units.
Transaction status.
COMPLETED When the trade was executed.
curl --request POST \
--url https://api.nxos.io/v1/quotes/{quoteId}/execute \
--header 'Authorization: <authorization>'{
"object": "trade",
"transactionId": "txn_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5",
"quoteId": "quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"fromAsset": "USD",
"toAsset": "USDC",
"fromAmount": "10000.00",
"toAmount": "9997.000000",
"status": "COMPLETED",
"createdAt": "2025-03-15T14:31:00.000Z"
}