coingecko

Integrate CoinGecko on-chain API for Solana token prices, pools, and OHLCV data.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill coingecko-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coingecko
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/coingecko
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill coingecko-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents and developers often lack accurate, up-to-date knowledge of the CoinGecko on-chain API, leading to hallucinated endpoints, wrong headers, and broken integrations when fetching Solana token prices, DEX pool data, and market analytics. ## Core Features & Use Cases - Token Price Feeds: Fetch single or batched token prices by contract address with market cap, 24h volume, and price change data. - Pool & DEX Analytics: Query pool liquidity, trending pools, recent trades, and filter pools across 1,700+ DEXes like Raydium, Orca, and Pump.fun using the megafilter endpoint. - OHLCV Charts: Retrieve candlestick data at minute, hour, and day timeframes for technical analysis and charting. - Use Case: Build a portfolio tracker that polls SOL, JUP, and BONK prices every 30 seconds, displays hourly OHLCV charts for a Raydium pool, and alerts on trending new pools. ## Quick Start Ask the agent to fetch the current price and 24h volume for the USDC token on Solana using the CoinGecko demo API key stored in your environment variables.

Frequently Asked Questions about coingecko

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get Solana token prices from the CoinGecko API?

Call GET /simple/networks/solana/token_price/{address} with your API key in the x-cg-demo-api-key or x-cg-pro-api-key header. You can batch up to 30 addresses on the demo plan or 100 on pro, and optionally include market cap, 24h volume, and price change.

How to fetch OHLCV candlestick data for a Solana pool?

Use GET /networks/solana/pools/{pool_address}/ohlcv/{timeframe} where timeframe is day, hour, or minute. Set aggregate (1, 5, 15 for minute; 1, 4, 12 for hour) and limit up to 1000 candles, returned as timestamp, open, high, low, close, volume arrays.

What is the difference between CoinGecko demo and pro API?

The demo API is free with 30 calls per minute and uses api.coingecko.com with the x-cg-demo-api-key header. The pro API offers 500-1000 calls per minute, uses pro-api.coingecko.com with x-cg-pro-api-key, and allows more addresses per batch request.

Why does the CoinGecko API return 429 errors?

A 429 error means you exceeded your plan's rate limit, such as 30 calls per minute on the demo tier. Implement a sliding-window rate limiter, batch token requests into single calls, and cache frequently accessed data to stay within limits.

Why does market cap return null for some Solana tokens?

Market cap is null when CoinGecko has not verified the token's supply data. Use the FDV value as a fallback or pass the mcap_fdv_fallback=true query parameter to automatically substitute FDV when market cap is unavailable.

Can I filter Solana pools by specific DEXes like Raydium or Pump.fun?

Yes, use the GET /pools/megafilter endpoint with networks=solana and a comma-separated dexes parameter such as raydium or pump-fun. You can also set minimum liquidity and 24h volume thresholds and sort by pool creation date.