Documentation Index
Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
Use this file to discover all available pages before exploring further.

Your privacy is our priority. The add-in only communicates with the CoinGecko API using your saved API key. No personal data is sent to any third party.If you have any questions or feedback, please share with us here.
1. Quick Start
Install the Add-in
Search for βCoinGeckoβ and Install directly from the Excel Add-ins store, or visit the Microsoft Marketplace.

Set Your API Key
Enter your CoinGecko API key, then click Save Settings. A green status dot confirms a valid connection.

2. Formulas
All formulas use theCG namespace. Enter them in any cell like a standard Excel formula.
=CG.PRICE(id)
Returns the current USD price of a coin.
| Parameter | Type | Description |
|---|---|---|
id | string | CoinGecko coin ID (e.g. "bitcoin", "ethereum")View full Coin IDs. |
=CG.HISTORY(id, date)
Returns the historical USD price of a coin on a specific date.
| Parameter | Type | Description |
|---|---|---|
id | string | CoinGecko coin ID (e.g. "bitcoin", "ethereum")View full Coin IDs. |
date | string | Date in YYYY-MM-DD format |
Date must be in
YYYY-MM-DD format. Example: February 1, 2023 = "2023-02-01"=CG.NFT(id)
Returns the current floor price (USD) of an NFT collection.
| Parameter | Type | Description |
|---|---|---|
id | string | CoinGecko NFT collection ID (e.g. "bored-ape-yacht-club")View full NFT IDs. |
=CG.ONCHAIN(network, address)
Returns the current USD price of an on-chain token by its network and contract address.
| Parameter | Type | Description |
|---|---|---|
network | string | Network ID (e.g. "eth", "bsc", "solana")Get full Onchain network IDs. |
address | string | Token contract address |
| Network | ID |
|---|---|
| Ethereum | eth |
| BNB Smart Chain | bsc |
| Solana | solana |
| Arbitrum | arbitrum |
| Base | base |
=CG.TOP(limit, [category])
Returns a ranked table of top coins by market cap.

| Parameter | Type | Description |
|---|---|---|
limit | number | Number of coins to return (1-10000) |
category | string (optional) | CoinGecko category ID to filter results |
Enter
=CG.TOP(...) in a single cell and let the results spill automatically into adjacent rows and columns. Do not pre-select a range.3. Taskpane Actions
Refresh All Data π
Clears the in-memory cache and forces all=CG.* formulas in the workbook to recalculate with fresh data from the API.
Save πΎ
Saves your API key and plan selection. Automatically validates the key against the API and clears the cache.
4. Troubleshooting & FAQ
Why is my formula showing #NAME??- Ensure the add-in is installed and loaded. The
CGnamespace is only available when the add-in is active.
- You can get the full list of supported CoinGecko API IDs here, or visit CoinGecko.com - the Coin ID can also be found in the βAPI IDβ section on the right sidebar of the coin or NFTβs page.
- Open the taskpane, re-enter your API key, and click Save.
- You have exceeded the API rate limit. Wait a moment, then click Refresh All Data in the taskpane.
- Confirm the date is in
YYYY-MM-DDformat and that the coin existed on that date.
- Make sure the cells below and to the right are empty so the array can spill. Excel requires free space for spill ranges.
- Please view the full details of our privacy policy here.
- Please share feedback with us here.


