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

# Slippage

> Slippage tolerance in Soroswap: what it protects against, and the auto and custom settings.

**Slippage** is the difference between the expected price of a swap and the actual price at the time of execution. It often occurs due to rapid changes in liquidity or asset demand.

In Soroswap, you can set your slippage tolerance directly from the swap settings menu.

#### What does it mean?

> If the price changes more than the allowed slippage percentage during execution, **the transaction will automatically revert** to protect you from an unfavorable trade.

![](https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/captura-de-pantalla-2025-04-29-a-las-14-59-47.png?fit=max\&auto=format\&n=1xzCGA5zGx88_Gb9\&q=85\&s=decf4a461aec0d192233b224c674c24a)

#### Available options:

* **Auto**: The system automatically selects an appropriate slippage based on current pool liquidity.
* **Custom**: Set your own value (e.g., 1%).

> 🛠 You can find this setting by clicking the **gear icon** in the upper corner of the swap interface.


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