# 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.


---

# 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://www.lumolabs.ai/tools/coingecko-trending-crypto-tool.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.
