> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soroswap.finance/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Soroswap Aggregator API: base URL https://api.soroswap.finance, pick the network with ?network=mainnet or ?network=testnet (omitted means mainnet).
> Auth: Authorization: Bearer sk_... on every call. Get a key at https://console.soroswap.finance/register. A missing or invalid key returns 401 with code and registerUrl (POST /send returns 403 instead); an expired JWT or a missing role returns 403. Free plan 1 request/s; see https://docs.soroswap.finance/api/plans.md.
> Flow: POST /quote (assetIn, assetOut as C... contract addresses, amount as an integer string in the smallest unit, tradeType, protocols) -> POST /quote/build with the unchanged quote and from -> the user signs the XDR -> POST /send. Build right after quoting: a Soroban XDR is valid for 180 seconds. Submit it as is, never re-simulate it.
> Partner id: every account has one (9 hex chars, permanent). Read partnerId from GET /partner, or in the console at https://console.soroswap.finance under Fees & payouts. The partner fee itself is switched on by Soroswap; see https://docs.soroswap.finance/api/fees.md.
> AI tools: docs MCP at https://docs.soroswap.finance/mcp (claude mcp add --transport http soroswap-docs https://docs.soroswap.finance/mcp), skill with npx skills add https://docs.soroswap.finance. Other clients: https://docs.soroswap.finance/api/build-with-ai.md.
> Units and Stellar pitfalls: https://docs.soroswap.finance/api/stellar-gotchas.md. Errors and retries: https://docs.soroswap.finance/api/errors.md.

# Supported venues

> The venues the Soroswap Aggregator API routes through and their protocols values: soroswap, aqua (Aquarius), sushi (SushiSwap V3), comet and sdex (the Stellar classic DEX, quoted only when listed), and how each one executes.

The Aggregator API prices every venue below and returns the best route. Soroban routes can split one trade across several venues, hop by hop, and execute in a single atomic transaction through [Aggregator v3](https://docs.soroswap.finance/aggregator/technical-reference/contracts/aggregator-v3.md). SDEX is quoted alongside as a separate classic path.

| Venue | Pool type | `protocols` value | How it executes |
| - | - | - | - |
| [Soroswap AMM](https://soroswap.finance) | Constant product | `soroswap` | Aggregator v3 (`Hop::Soroswap`) |
| [Aquarius](https://aqua.network) | Constant product, stable, concentrated | `aqua` | Aggregator v3 (`Hop::Aqua`) |
| [SushiSwap V3](https://www.sushi.com) | Concentrated liquidity (Uniswap V3 style) | `sushi` | Aggregator v3 (`Hop::Sushi`) |
| Comet | Weighted pools (Balancer style) | `comet` | Aggregator v3 (`Hop::Comet`) |
| SDEX (Stellar classic order book) | Order book and classic liquidity pools | `sdex` | Classic path payment |

* **Soroban venues** can be combined in one route, and a quote that uses them carries `"platform": "aggregator"`. You can also execute such routes from your own contract.
* **SDEX:** quoted only when `"sdex"` is in `protocols`. A quote with `"platform": "sdex"` is built as a classic path payment, not an aggregator call. See [Routing through SDEX](https://docs.soroswap.finance/api/sdex.md).

`GET /protocols?network=mainnet` returns the venue list the API accepts in `protocols`.

Some assets only trade on one venue. deJTRSY, for example, has its liquidity in SushiSwap V3 pools. When you need such a pair, add that venue to `protocols`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.