# Trade

TheOne uses its own smart-routing and execution infrastructure to deliver the best available prices across all venues.

### **Estimation**

TheOne analyzes all available options to determine the most efficient way to perform a swap:

* for all possible route combinations, the system aggregates the order books
* evaluates potential prices and all related costs to ensure the best outcome
* selects the order book with the best average execution price among all evaluated options

### **Execution**&#x20;

After the route is built, TheOne sends all execution commands to liquidity sources simultaneously and asynchronously. After that, the user takes advantage of the best conditions due to our smart routing.

A swap is considered successfully executed when the final amount credited to the user’s balance is equal to or greater than the estimated result.&#x20;

{% hint style="info" %}
Note: Since multiple liquidity venues are involved in the execution process, one of them may lack sufficient liquidity. When this occurs, the route is automatically rebuilt to find an alternative option, while also accounting for the minimum order size required by different liquidity venues and tokens. If a part of the order falls below this minimum order size, the order is executed without it. The remaining amount stays on the user’s balance in the source token or in the transit token used in the route.
{% endhint %}

**The execution process considers the following factors:**

#### Execution Speed

Execution speed is the most crucial parameter that we have optimized on all ends. Now, order execution speed on TheOne starts from **250 milliseconds.**

#### Price Impact

{% hint style="info" %}
Price impact reflects how much your trade size affects the execution price based on the available liquidity.
{% endhint %}

If the expected price impact on the proposed route is **3% or higher**, you will be prompted either to rebuild the route or to proceed with the current execution.

#### Slippage

{% hint style="info" %}
Slippage defines how much the final execution price is allowed to differ from the quoted price.
{% endhint %}

You can adjust the slippage tolerance manually.&#x20;

If market volatility increases or liquidity changes, your trade may fail unless you raise the slippage value.&#x20;

TheOne executes the swap only if the final price stays within your selected tolerance.


---

# 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://theonetradeai.gitbook.io/docs/theone-swapp/trade.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.
