Install
openclaw skills install coingecko-apiUse this skill for any request involving cryptocurrency market data, coin prices, trading volume, market cap, OHLC charts, historical data, exchanges, derivatives, NFTs, DeFi, on-chain token data, liquidity pools, DEX data, or anything powered by CoinGecko or GeckoTerminal APIs. Trigger this skill whenever the user asks about crypto prices, token data, market trends, or wants to call any CoinGecko or GeckoTerminal endpoint — even if they don't explicitly say "CoinGecko". Also trigger when the user asks about API keys, rate limits, or authentication for these APIs.
openclaw skills install coingecko-apiTrigger this skill when the user's request matches any of the following:
0x...)You have access to the CoinGecko API (aggregated data) and the GeckoTerminal API
(on-chain DEX data). Together they cover virtually all crypto market data needs.
Both APIs share the same API key and plan tier. GeckoTerminal endpoints use the
same base URL as CoinGecko plus an /onchain path prefix (details in references/core.md).
Never answer questions about crypto prices, market caps, volumes, supply, TVL, exchange rates, or any time-sensitive market data using training knowledge. These figures change by the minute — training data is months or years stale and will be wrong.
If an API call fails or has not been attempted yet, you MUST:
Do NOT say "based on my knowledge", "approximately", or cite any price/market figure from memory. The only acceptable source for market data is a successful live API response.
Bad: "The domain is blocked… However, I have reliable data. Bitcoin today: ~$87,000" (actual price was ~$69,000 — Claude fabricated a confident, wrong answer)
Good: "The API call failed because the domain is blocked. Let me walk you through adding it to your allowlist so we can fetch the live data."
Follow these steps in strict order. Do NOT skip ahead. Do NOT write code, plan an architecture, or make any API call until the blocking steps are fully resolved.
If you are running inside Claude (claude.ai), read references/claude-env.md first.
It documents two platform constraints that break all CoinGecko API calls:
api.coingecko.com and
pro-api.coingecko.com at claude.ai/settings/capabilities.
If this is the user's first time or any call fails with a network error, pause and
walk them through it before debugging anything else.fetch() inside Artifacts will always fail silently.
Default to bash_tool with curl for all CoinGecko API calls, then embed
results as static data into any Artifact or visualization. This is the standard
approach, not a fallback.Skip this step if not running inside Claude.
STOP. Before doing anything else, you must resolve the user's API tier. This is a hard prerequisite — not a suggestion, not something to revisit later, and not something to skip because "keyless should work for this request."
Why this exists: Keyless and Demo tiers have restrictions that silently break multi-step tasks. Example failure pattern:
User: "If I invested in Bitcoin 5 years ago, how much would it be worth today?" Bad behavior: Claude assumes keyless works, starts building a dashboard, then hits error
10012because keyless/Demo cannot fetch historical data beyond 365 days. The user wasted time and rate-limit calls on something that was never going to work.
The correct behavior is to ask for credentials first, identify that "5 years ago" exceeds keyless/Demo limits, and tell the user upfront — before writing a single line of code.
Procedure:
CG-… key?5m), or paid-only endpoints. If it does,
tell the user before attempting any call. Do not make the call and let it fail.references/core.md for full auth setup and save the confirmed tier to memory.Do NOT proceed to step 1 until this step is fully resolved.
Use the Reference index below to decide which file(s) to load.
Load the relevant reference file(s) and build the API call.
Auth and rate-limit error codes are documented in references/core.md. If the API returns
error 10005, the endpoint requires a higher plan — inform the user and link them to
https://www.coingecko.com/en/api/pricing. If you get error 10010 or 10011, you've used
the wrong base URL for the key type — swap URLs per core.md's error table and retry
automatically.
"Failed to fetch" or network errors: If a request fails with no HTTP status (e.g.
"Failed to fetch", TypeError), follow the diagnostic in references/claude-env.md if
running inside Claude — the cause is usually the Artifact CSP sandbox (move to bash_tool)
or a missing domain allowlist entry. Outside Claude, the cause is likely a wrong
base URL — see core.md's "Network-level failures" section. In either case, never assume
CORS is the problem.
Load the relevant reference file based on what the user is asking for. You only need to load the file(s) that match the current request.
If the user asks what they can build, wants project ideas, or asks an exploratory
question like "what data is available?" — load references/common-use-cases.md instead
of the domain-specific files below, then follow its pointers to drill deeper.
| File | When to load |
|---|---|
references/claude-env.md | Read in Step 0a — Claude-specific constraints (domain allowlist, Artifact CSP sandbox, bash_tool strategy, MCP upgrade path). Only applies when running inside Claude. |
| File | When to load |
|---|---|
references/core.md | Always read — auth, methodology, rate limits |
references/coins.md | Coin prices, market data, metadata, tickers, gainers/losers |
references/coin-history.md | Historical charts, OHLC, time-range queries by coin ID |
references/coin-supply.md | Circulating/total supply charts |
references/contract.md | Coin data or charts looked up by token contract address |
references/asset-platforms.md | Blockchain platform IDs, token lists |
references/categories.md | Coin categories and sector market data |
references/exchanges.md | Spot and DEX exchange data, tickers, volume charts |
references/derivatives.md | Derivatives exchanges and tickers |
references/treasury.md | Public company/institution crypto treasury holdings |
references/nfts.md | NFT collection data, market data, charts, tickers |
references/global.md | Global market stats and DeFi data |
references/utils.md | API status, API key usage, supported currencies, search, trending coins/NFTs/categories, exchange rates |
| File | When to load |
|---|---|
references/onchain-networks.md | Supported networks and DEXes (ID resolution) |
references/onchain-pools.md | Pool discovery, trending/new pools, megafilter |
references/onchain-tokens.md | Token data, price by contract address, holders and traders |
references/onchain-ohlcv-trades.md | OHLCV candles and trade history for pools/tokens |
references/onchain-categories.md | On-chain pool categories (GeckoTerminal-specific) |
references/core.md (Methodology section).