# Routing & Quoting

### Quotes

Before you can execute your swap you will first need to get a quote from the aggregator network.

<figure><img src="/files/MaAMCdnxpwZfKesWeGJg" alt=""><figcaption><p>Fetch Quote will open a route summary and quote overview dialog.</p></figcaption></figure>

<figure><img src="/files/8A0emubWbSdEMyI6Zet4" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The output amount shown before a real quote is requested is an estimation that does not take into account slippage, or market depth.  price impact and volatility occuring while enroute trades are fulfilled will cause divergence from these estimates.
{% endhint %}

### Routes

Each swap quote generated on the Sherpa *Swap* interface will present a dynamic route.  These are based on a diagrammatic sankey standard for mapping transactions complex trade operation in a logical manner.  The amount of hops, pool exposure, volume, and multi input / output details are broken down.

{% tabs %}
{% tab title="Typical Map" %}

<figure><img src="/files/ugsQNeN4431v6WebqMPw" alt=""><figcaption><p>Typical simplified 3 asset input to 3 asset output route.  More complex routes wont genrate route maps.</p></figcaption></figure>
{% endtab %}

{% tab title="Rouet Details" %}

<figure><img src="/files/uj4HOI3RAt5D79Cl2LFc" alt=""><figcaption><p>Hover cursor over each colored band to see the details of which DEX pool it corresponds to.</p></figcaption></figure>
{% endtab %}

{% tab title="Volume Scaling" %}

<figure><img src="/files/9cgdCr0z12p4kYBwcn51" alt=""><figcaption><p>Higher volume legs will be illustrated as the thickest bands.</p></figcaption></figure>
{% endtab %}

{% tab title="Price Impact Warning" %}

<figure><img src="/files/FqCPG54MzJj7fl8hNUCd" alt=""><figcaption><p>Note that multi-swapping with assets of very low liquidity can expose you to critical price impact losses.</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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.sherpa.trade/sherpa-trade-automation/swap/routing-and-quoting.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.
