> For the complete documentation index, see [llms.txt](https://inoswap.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inoswap.gitbook.io/guide/using-inoswap/search-modes-and-routing.md).

# Search Modes & Routing

I explain what routing is, why it changes, and how I decide execution paths.

When you initiate a swap on [InoSwap](https://inoswap.org/), routing determines how your transaction moves through available liquidity. Behind the interface, I analyse multiple possible paths and prepare an execution strategy based on current market conditions.

You don’t see all of that complexity — but on InoSwap, it’s happening in real time.

To give you control over how InoSwap behaves, I provide two routing modes: **Fastest** and **Best Price**.

***

## Search Mode: **Fastest**

When you select **Fastest** search mode on InoSwap, I prioritise speed.

In this mode, I calculate routing paths quickly and return a **near-instant result**. Fastest is designed for traders who value rapid execution and fast market entry. If timing matters — during volatility or when reacting to price movement — this mode helps you act without delay.

On InoSwap, Fastest search mode mode still performs optimisation, but I limit the depth of search to deliver results as efficiently as possible.

***

## Search Mode: **Best Price**

When you select **Best Price** search mode, I allow InoSwap to perform a broader routing analysis.

Instead of returning the first efficient path, I explore more combinations across integrated liquidity sources. This deeper evaluation can take slightly longer, but it aims to identify **more competitive pricing** opportunities when liquidity conditions allow.

Best Price search mode is particularly useful for larger swaps or when small differences in execution can meaningfully affect the final outcome.

***

## Choosing the Right Mode on InoSwap

There isn’t a universally “better” search mode — only the one that fits your objective.

Choose **Fastest** search mode on InoSwap when:

* immediate execution matters most
* you are reacting to short-term price movement
* speed is your priority

Choose **Best Price** search mode when:

* you want deeper optimisation
* you are executing a larger trade
* pricing precision matters more than speed

**You decide the priority, I execute.**

***

<figure><img src="https://315345422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cmf40MFDkotr9frd5zl%2Fuploads%2F8QXQK5eKN03gj6xbHNDE%2Fcontent-inoswap-dex-onchain.png?alt=media&amp;token=ef01a340-773e-43f6-bfde-c0721dd2974f" alt=""><figcaption></figcaption></figure>

***

## How Routing Works on InoSwap

Regardless of the mode you choose, [InoSwap](https://inoswap.org/) follows a **structured optimisation process.**

When you request a swap, I:

1. Scan liquidity pools across integrated DEXs
2. Compute direct and multi-step trading paths
3. Evaluate liquidity depth and potential price impact
4. Compare execution efficiency across possible routes
5. Generate a transaction payload based on the selected strategy

Some swaps on InoSwap execute through a single pool. Others may route through intermediary tokens or split across multiple pools if that improves execution quality.

Because liquidity and pricing change continuously, the final output depends on real-time market conditions. Pool depth, order size, and network factors can all influence the result between quote generation and transaction confirmation.

{% hint style="info" %}
**Why final output can vary?**

Markets move continuously, and decentralised liquidity is never static. Even after I prepare a route, the final output may vary due to:

* Liquidity changes rapidly
* Pool depth matters for larger orders
* Market movement between quote and signature
* Network conditions and gas costs
  {% endhint %}
