> ## 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.

# What is Soroswap Finance?

> Soroswap Finance is an open source protocol on Stellar: the Aggregator API that routes swaps across every Stellar venue, and the Soroswap AMM.

[Soroswap.Finance](https://docs.soroswap.finance/index.md) is an open-source protocol designed for liquidity provision and token trading on the Soroban blockchain. It operates without the need for intermediaries, ensuring a secure, transparent, and efficient trading environment. The protocol is immutable and built to resist censorship. Development of Soroswap.Finance and its interface is managed by [PaltaLabs.](https://paltalabs.io)

![](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/home.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=d6853ee5f5d8b8f8a6658fa5af61041a)

Soroswap.Finance includes:

* [**Soroswap Aggregator API**](https://docs.soroswap.finance/index.md): one API that quotes Soroswap, Aquarius, SushiSwap V3, Comet and the Stellar Classic DEX, and returns the best route ready to execute.
* [**Soroswap AMM**](https://docs.soroswap.finance/amm.md): an Automated Market Maker that facilitates token swaps and liquidity provision.

### How to Use Soroswap.Finance

To interact with [Soroswap.Finance](https://docs.soroswap.finance/index.md), you can mint test tokens, create [liquidity pools](https://docs.soroswap.finance/concepts/liquidity-pools.md), [provide liquidity](https://docs.soroswap.finance/tutorials/adding-liquidity.md), or [swap tokens](https://docs.soroswap.finance/tutorials/doing-swap.md) using the Soroswap Interface. Connect your [Freighter wallet ](https://docs.soroswap.finance/tutorials/installing-freighter.md)to perform these actions. Note that transactions on Soroban require Lumens (XLM), so ensure [you have test ](https://docs.soroswap.finance/tutorials/soroswap-testnet-overview.md)Lumens, which can be obtained from Friendbot.

### How Soroswap.Finance Works

Soroswap.Finance functions as an Automated Market Maker (AMM) through a network of smart contracts that standardize liquidity pool creation, liquidity provision, and asset swapping.

* **Liquidity Pools**: Each pool contains two assets. The pool’s reserves and pricing are managed dynamically by the protocol, updating with each trade.
* **Trading**: Unlike traditional exchanges, Soroswap does not use a central order book or private matching engines. Instead, reserves are automatically rebalanced, allowing continuous trading without the need for counterparties.

For more detailed information, refer to the [**Concepts**](https://docs.soroswap.finance/concepts.md) and [**Getting Started**.](https://docs.soroswap.finance/getting-started.md)


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