> For the complete documentation index, see [llms.txt](https://whitepaper.aitech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whitepaper.aitech.io/agentforge/tools/coingecko.md).

# coingecko

[CoinGecko](https://www.coingecko.com/) provides cryptocurrency market data, token metadata, exchange information, derivatives data, trending assets, categories, and NFT collection data.

In Agent Forge, the CoinGecko integration allows workflows to pull live and historical market intelligence into agents. Use it for crypto dashboards, token research agents, market monitoring, price alerts, asset comparison, and automated research pipelines.

## Usage Instructions

Choose the CoinGecko operation that matches the data you need. Most read-only public endpoints can run without an API key, while higher-volume or Pro API usage can include a CoinGecko API key in the advanced field.

## Tools

### Market Data

* `coingecko_simple_price` - Get current prices for one or more coins
* `coingecko_coins_markets` - List market data for selected coins
* `coingecko_market_chart` - Retrieve historical market chart data
* `coingecko_ohlc` - Retrieve OHLC price candles

### Discovery

* `coingecko_search` - Search for coins, exchanges, categories, and NFTs
* `coingecko_trending` - Get trending coins and NFTs

### Coin and Token Metadata

* `coingecko_coin_details` - Get detailed metadata for a coin
* `coingecko_token_price` - Get token prices by platform and contract address
* `coingecko_token_info` - Get token metadata by platform and contract address

### Taxonomy and Venues

* `coingecko_categories` - List coin categories
* `coingecko_exchanges` - List exchanges
* `coingecko_derivatives` - List derivative exchanges and markets

### NFT

* `coingecko_nft_list` - List NFT collections
* `coingecko_nft_details` - Get NFT collection details

## Common Inputs

| Parameter           | Type   | Required           | Description                                        |
| ------------------- | ------ | ------------------ | -------------------------------------------------- |
| `ids`               | string | Operation-specific | Coin IDs such as `bitcoin,ethereum`                |
| `vsCurrencies`      | string | Operation-specific | Quote currencies such as `usd,eur`                 |
| `vsCurrency`        | string | Operation-specific | Single quote currency                              |
| `coinId`            | string | Operation-specific | CoinGecko coin ID                                  |
| `days`              | string | Operation-specific | Historical window such as `1`, `7`, `30`, or `max` |
| `query`             | string | Operation-specific | Search query                                       |
| `assetPlatformId`   | string | Operation-specific | Platform ID such as `ethereum`                     |
| `contractAddress`   | string | Operation-specific | Token contract address                             |
| `contractAddresses` | string | Operation-specific | Comma-separated token contract addresses           |
| `nftId`             | string | Operation-specific | NFT collection ID                                  |
| `apiKey`            | string | No                 | Optional CoinGecko API key                         |

## Output

| Parameter | Type | Description             |
| --------- | ---- | ----------------------- |
| `data`    | json | CoinGecko response data |

## Notes

* Category: `tools`
* Type: `coingecko`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://whitepaper.aitech.io/agentforge/tools/coingecko.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.
