Execute a trade quote
POST/v1/trades/quotes/:id/execute
Executes a previously generated trade quote. The quote must not be expired and the user must have sufficient balance in the specified wallet.
Request
Path Parameters
- application/json
Body
required
Trade quote execution request
ID of the wallet to use for the trade execution
Responses
- 201
- 400
- 403
- 404
Trade executed successfully
- application/json
- Schema
- Example (from schema)
Schema
data
object
Parent transaction ID for the trade order
Source asset transfer transaction ID
Target asset transfer transaction ID
Fee transfer transaction ID (null if no fee)
Spread transfer transaction ID (null if no spread revenue)
Whether the trade was executed successfully
Filled price from the exchange
Total source amount used in the trade
Total target amount received from the trade
Total fee amount charged
Success or error message
Error details if trade failed
Transaction type (buy or sell)
Trade execution timestamp
External reference or vendor transaction ID
Related transaction IDs
Blockchain network for the asset
Transaction hash or ID
Source asset acronym
Target asset acronym
Source wallet name
Destination wallet name
Asset from which fees were deducted
{
"traceId": "string",
"message": "string",
"data": {
"parentTransactionId": "123e4567-e89b-12d3-a456-426614174000",
"sourceAssetTransferId": "123e4567-e89b-12d3-a456-426614174001",
"targetAssetTransferId": "123e4567-e89b-12d3-a456-426614174002",
"feeTransferId": "123e4567-e89b-12d3-a456-426614174003",
"spreadTransferId": "123e4567-e89b-12d3-a456-426614174004",
"success": true,
"filledPrice": "50000.00",
"totalSourceAmount": "1000.00",
"totalTargetAmount": "0.02",
"totalFeeAmount": "10.00",
"message": "Trade executed successfully",
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "Not enough funds"
},
"txType": "buy",
"date": "2025-10-24T10:30:00.000Z",
"reference": "fx_quote_abc123",
"relatedTransactions": [
"123e4567-e89b-12d3-a456-426614174000"
],
"network": "ETH",
"transaction": "123e4567-e89b-12d3-a456-426614174002",
"sourceAssetAcronym": "USD",
"targetAssetAcronym": "BTC",
"from": "User Wallet",
"to": "User Wallet",
"feeDeductedFrom": "USD"
}
}
Invalid request payload. This can happen if required fields are missing or have invalid formats.
- application/json
- Schema
- Example (from schema)
Schema
{
"traceId": "string",
"message": "string"
}
The API key is invalid or the client does not have sufficient permissions.
- application/json
- Schema
- Example (from schema)
Schema
{
"traceId": "string",
"message": "string"
}
One of the specified resources was not found. Does not apply for empty result set.
- application/json
- Schema
- Example (from schema)
Schema
{
"traceId": "string",
"message": "string"
}