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"
}Documentation Index
Fetch the complete documentation index at: https://docs.nxos.io/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token. Format: Bearer <api_key>
Unique key per logical operation. UUID v4 recommended. Max 255 characters.
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"
}