# Aggregators

## DEX Aggregators Integration

### Overview

This module enables efficient token swaps on decentralized exchanges by integrating multiple DEX aggregators. It optimizes trading routes and provides the best possible rates across various liquidity sources.

### Core Components

#### Supported Aggregators

* **KyberSwap**
* **0x Protocol**
* **OpenOcean**
* **Odos**
* Fly trade
* **OKX**
* **Hypersonic**

#### **Swap Functionality**

* **Token Swaps:**
  * **Execute trades with optimal routing**
  * **Support for multiple input/output tokens**
  * **Automatic best price discovery**
  * **Full or partial balance swaps**
  * **Cross-chain compatibility**

#### **Features**

* **Optimal trade routing across multiple DEXs**
* **Best price execution through aggregator comparison**
* **Support for multiple blockchain networks**
* **Automatic slippage protection**
* **Gas-optimized transactions**
* **Flexible amount specification (exact amounts or entire balance)**
* **Comprehensive error handling**
* **Gas estimation and optimization**

### **Chain Support**

* **Multiple blockchain networks supported**
* **Cross-chain trading capabilities**
* **Network-specific optimizations**

### Example Prompts:

* "HeyAnon, please use 1000 USDT on Solana to buy 9McvH6w97oewLmPxqQEoHUAv3u5iYMyQ9AeZZhguYf1T"
* "HeyAnon, please use 1000 USDT to buy ETH on Base with 420% TP, 69% SL"


---

# 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.heyanon.ai/heyanon.ai/hey-anon/protocols-and-functions-supported/defi-protocols/aggregators.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.
