Documentation Index
Fetch the complete documentation index at: https://docs.houdiniswap.com/llms.txt
Use this file to discover all available pages before exploring further.
POST CEX Exchange
Initiates an exchange transaction, including sender and receiver information, transaction status, quoted amounts, and token details. This information is useful for tracking and managing token exchange.Endpoint
Exchange details.
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Amount to be exchanged (example: 1) |
from | string | Yes | Symbol of the input token (example: ETH) |
to | string | Yes | Symbol of the output token (example: BNB) |
addressTo | string | Yes | Destination address |
anonymous | boolean | Yes | Indicates if the transaction is anonymous (example: false) |
ip | string | Yes | User IP address. Used for fraud prevention only |
userAgent | string | Yes | User userAgent browser string |
timezone | string | Yes | User browser timezone (example: UTC) |
receiverTag | string | No | Optional receiver tag (example: 123) |
walletId | string | No | User’s wallet identifier |
useXmr | string | No | Use XMR if true, or use another token for the anonymous transaction if false |
filters | object | No | Rotation and provider filtering options. See below |
Filters Object
| Field | Type | Default | Description |
|---|---|---|---|
rotatePayoutWallets | boolean | false | Enable payout wallet rotation. Deprioritizes recently-used provider paths |
deviationThreshold | number | 5 | Maximum price deviation percentage allowed when rotating |
rotationLookback | number | 10 | Number of recent orders to check for path deduplication |
onlySwaps | string[] | all | Restrict to specific providers (e.g., ["cl", "ss"]). See Provider Codes |
When
rotatePayoutWallets is enabled, any provided inQuoteId and outQuoteId are discarded. The system forces a fresh re-quote with rotation applied to ensure the new path is used.Example Request
Example Response
Response Fields
| Field | Type | Description |
|---|---|---|
houdiniId | string | Unique identifier for the exchange transaction |
created | string | Timestamp of when the transaction was created |
senderAddress | string | Address to send funds to |
receiverAddress | string | Address of the receiver |
anonymous | boolean | Indicates if the transaction is anonymous |
expires | string | Expiration timestamp of the transaction |
status | number | Status code of the transaction |
inAmount | number | Amount sent in the exchange |
outAmount | number | Amount received in the exchange |
inSymbol | string | Symbol of the input token |
outSymbol | string | Symbol of the output token |
senderTag | string | (Optional) Sender tag |
receiverTag | string | (Optional) Receiver tag |
notified | boolean | Indicates if the user has been notified |
eta | number | Estimated time of arrival (in minutes) |
inAmountUsd | number | Input amount converted to USD |
inCreated | string | Timestamp when the input was created |
quote | object | Details of the exchange quote (amounts, min/max limits, path). See QuoteDTO |
outToken | object | Details of the output token. See TokenDTO |
inToken | object | Details of the input token. See TokenDTO |
After receiving the response, send the exact
inAmount of the inSymbol token to the senderAddress to initiate the swap.