Aqua0
API ReferenceSwaps

Preview one trade priced across venues on several chains

Read-only. Discovers every venue offering the pair on every allowed chain, splits the size across them by best marginal price, and reports the combined result against the best single source. Places no capital hold and mints no signature. Sources whose chain has no settlement driver to the destination are excluded, with the reason.

POST
/api/swap/quote/combined-depth

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Response Body

application/json

curl -X POST "https://example.com/api/swap/quote/combined-depth"
{  "assetIn": "string",  "assetOut": "string",  "dstChainId": 0,  "requestedSize": "string",  "legs": [    {      "sourceId": "string",      "venue": "aqua",      "chainId": 0,      "size": "string",      "amountOut": "string",      "avgPriceWad": "string",      "bridgeRoute": [        "string"      ],      "local": true    }  ],  "totalIn": "string",  "totalOut": "string",  "unfilled": "string",  "bestSingle": {    "sourceId": "string",    "size": "string",    "amountOut": "string"  },  "improvementBps": 0,  "excluded": [    {      "sourceId": "string",      "chainId": 0,      "reason": "string"    }  ],  "diagnostics": [    "string"  ]}
Empty