# Dex Aggregator

<figure><img src="/files/46dEVxJiYnGm0Au5J640" alt=""><figcaption></figcaption></figure>

## What is a DEX Aggregator and How Does It Work?

A DEX aggregator is a valuable tool for purchasing cryptocurrencies in a decentralized manner while maintaining full custody of funds and anonymity. Unlike traditional centralized exchanges, DEXs allow users to trade crypto assets directly from their wallets. However, finding the best prices and lowest transaction costs can be challenging, especially with the constant emergence of new DEXs and varying liquidity levels.

This is where a DEX aggregator, like Piteas, comes into play. A DEX aggregator sources liquidity from multiple DEXs, offering users more favorable token swap rates than they would find on any single exchange. By leveraging multiple liquidity sources, DEX aggregators optimize swap fees, token prices, and minimize slippage, resulting in better rates for users.

For example, by splitting a swap deal across various DEXs, users can achieve a better overall price compared to a single exchange. The primary goal of a DEX aggregator is to provide users with superior swap rates, surpassing what individual DEXs can offer, and accomplishing this efficiently.

In addition to offering competitive rates, DEX aggregators aim to protect users from price impact and reduce the likelihood of failed transactions. By aggregating liquidity and optimizing the swap process, DEX aggregators deliver a seamless and secure trading experience.

DEXs are generally receptive to DEX aggregator integrations since they attract more users and trading volume. Recent data indicates that high-volume traders are increasingly utilizing DEX aggregators, while retail users still opt to access DEXs directly.

As a DEX aggregator, Piteas strives to optimize the trading experience by sourcing liquidity from various DEXs, ensuring users obtain the best swap rates, minimal slippage, and reduced transaction costs. By leveraging advanced algorithms, Piteas enhances price efficiency, protects users from adverse market conditions, and facilitates successful and efficient transactions.


---

# 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.piteas.io/piteas-protocol/dex-aggregator.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.
