# CoinGecko Exchange Rates Tool

#### CoinGecko Exchange Rates Tool (`coingecko_exchange_rates_tool`)

Fetches current exchange rates for 1 Bitcoin (BTC) against a list of major cryptocurrencies, fiat currencies, and commodities, as provided by CoinGecko.

***

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

***

**Key Functionality:**

* Retrieves Bitcoin's exchange rates against other assets from `api.coingecko.com`.
* Displays how many units of selected major cryptocurrencies (e.g., ETH, SOL), fiat currencies (e.g., USD, EUR), and commodities (e.g., Gold) are equivalent to 1 BTC.

***

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

* "What are the current Bitcoin exchange rates from CoinGecko?"
* "Show me BTC's value against major currencies and cryptos."
* "Get the CoinGecko exchange rates for Bitcoin."
* "How much ETH or USD is 1 Bitcoin worth right now?"
* "Fetch current BTC exchange rates."
* "What are the Bitcoin rates against fiat and other top coins on CoinGecko?"
* "Provide a summary of Bitcoin's exchange rates."

***

```python
class CoinGeckoExchangeRatesTool(BaseTool):
    name: ClassVar[str] = "coingecko_exchange_rates_tool"
    description: ClassVar[str] = "Get Bitcoin-to-currency exchange rates for major cryptocurrencies, fiat currencies, and commodities."
    args_schema: ClassVar[Type[BaseModel]] = CoinGeckoExchangeRatesInput
```

***

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