# CoinGecko Trending Crypto Tool

#### CoinGecko Trending Tool (`coingecko_trending_tool`)

Fetches the top 7 trending cryptocurrencies (most searched by users) and top 5 trending NFTs (by trading volume) from CoinGecko. Provides a snapshot of what's currently popular.

{% hint style="info" %}
**Input:** This tool requires **no specific input**.
{% endhint %}

```python
class CoinGeckoTrendingInput(BaseModel):
    pass # No input needed
```

***

**Key Functionality:**

* Retrieves trending coins and NFTs directly from the `api.coingecko.com`.
* For trending coins, it lists name, symbol, rank, price in BTC, and 24h USD price change.
* For trending NFTs, it lists name, symbol, floor price, and 24h floor price change.

***

**Sample Usage Queries (How an AI might use it):**

* "What are the trending coins and NFTs on CoinGecko right now?"
* "Show me CoinGecko's top trending searches."
* "Get the list of trending cryptocurrencies from CoinGecko."
* "Which NFTs are trending on CoinGecko today?"
* "Fetch the current trending crypto assets according to CoinGecko."
* "What's popular on CoinGecko?"
* "List CoinGecko's trending coins and NFTs."

***

```python
class CoinGeckoTrendingTool(BaseTool):
    name: ClassVar[str] = "coingecko_trending_tool"
    description: ClassVar[str] = "Get top trending coins and NFTs on CoinGecko based on user searches and trading volume."
    args_schema: ClassVar[Type[BaseModel]] = CoinGeckoTrendingInput
```

***

**Important:**

* This tool operates **asynchronously** (`_arun`) only.
* Relies on the external CoinGecko API (`api.coingecko.com`); functionality and data accuracy depend on this third-party service.
