# Multi Swap

## Overview

<figure><img src="/files/zJoRl54dl3cXeGlzSQia" alt=""><figcaption></figcaption></figure>

Chain as many swaps as required into a single transaction. Your multiswap transaction is atomic thereby reducing your exposure to market timing and front running risks.

All tokens are immediately swapped at the best available rates as the selected protocols dynamically reroutes your trade to more capital efficient sources.

## Potential Alpha

* **All Swaps Or None:** Reduce market timing risk when sourcing multiple tokens for your strategy as all swaps are completed at your configured price with a single swap failure resulting in none of the swaps being processed.
* **Any Tokens, Any Time:** From one-to-many, many-to-many, many-to-one swaps, switch between any token required for your specific strategy with ease.
* **Access Multiple Protocols:** More protocols means more markets for combining routes for your specific input and output token.
* **Swap At Superior Rates:** Your swaps are rerouted via more capital efficient sources resulting in deeper liquidity and better rates.

## Strategy Building Blocks

{% hint style="success" %}
The building block order mirrors the Factor Studio UI and can be expanded for further strategy details and parameters.
{% endhint %}

<details>

<summary><a href="/pages/8ObgSjNh6pntp9BtqQIc">Swap</a></summary>

* Select the tokens to swap
  * Token purchases: Input token is the token to swap from and output token is the target token.
  * Token sales: Input token is the token to sell and output token is the token to receive.
* Specify input token amount

</details>

<details>

<summary><a href="/pages/8ObgSjNh6pntp9BtqQIc">Swap</a></summary>

* Select the tokens to swap
  * Token purchases: Input token is the token to swap from and output token is the target token.
  * Token sales: Input token is the token to sell and output token is the token to receive.
* Specify input token amount

</details>

## Example

<figure><img src="/files/FRa7gSEkeahynwjpKmCu" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.factor.fi/getting-started/strategy-cheatsheet/swaps-cheatsheet/multi-swap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
