CoinGecko API
Free crypto data API. Prices, volumes, historical data. Rate limits on free tier.
Overview
CoinGecko API provides comprehensive cryptocurrency data including prices, market cap, volume, exchange data, and historical charts. CoinGecko tracks over 15,000 cryptocurrencies across 1,000+ exchanges, making it one of the most complete crypto data aggregators. The platform aggregates real-time and historical data from hundreds of sources, delivering clean, standardized datasets that eliminate the need to manage multiple fragmented data providers.
Key Features
- Price data: real-time and historical prices in 50+ fiat currencies with millisecond-level updates
- Market data: market cap, fully diluted valuation, trading volume, circulating and total supply, all-time high/low prices
- Exchange data: trading pairs, order book depth, volume rankings, and exchange trust scores based on regulatory compliance
- Trending coins: real-time trending searches, top gainers/losers by percentage, and emerging assets
- NFT data: floor prices, volume, market cap, collection rankings, and sales history
- On-chain data (DEX): decentralized exchange prices, liquidity pools, and token swap data
- Historical data: daily OHLC (open-high-low-close) candles, granular market charts going back to each coin's listing date, and intraday data for recent periods
- Derivatives: futures and perpetual swap data from major exchanges, open interest, and funding rates
- Community metrics: social sentiment, developer activity, and community engagement scores
Data Coverage
Over 15,000 coins tracked across 1,000+ exchanges with 50+ fiat currency pairs. Historical data available from each coin's listing date, with intraday granularity for the past 90 days. Comprehensive support for BTC, ETH, stablecoins, altcoins, layer-2 tokens, and emerging DeFi/NFT assets. Exchange coverage includes Binance, Coinbase, Kraken, OKX, Bybit, Deribit, and 1,000+ smaller venues.
Who Uses CoinGecko API
Day traders rely on real-time price feeds and intraday OHLC data to execute short-term momentum and arbitrage strategies. Swing traders use historical daily charts and volume analysis to identify multi-day trends. Quantitative traders and researchers leverage the API to build machine learning models, backtest strategies at scale, and analyze on-chain signals. Risk managers monitor derivative data (funding rates, open interest) to assess market sentiment and leverage extremes. Portfolio managers track market cap trends and community metrics for alternative alpha signals. DeFi developers and traders use DEX price feeds and liquidity data to identify yield opportunities and monitor smart contract risks.
Practical Trading Scenarios
Trend following on altcoins: Use the trending coins endpoint to identify coins gaining traction, then pull their 200-day historical price data to confirm uptrends before entering. Backtest this strategy on StratBase.ai using CoinGecko data to measure win rates and drawdowns.
Mean reversion with RSI: Fetch daily OHLC for altcoins with high 30-day volatility, calculate RSI, and identify oversold conditions. Test on StratBase.ai whether buying coins at RSI below 30 and selling at RSI above 70 outperforms buy-and-hold after accounting for exchange fees.
Cross-exchange arbitrage: Pull trading pair data from multiple exchanges via CoinGecko to identify price discrepancies. Backtest the profitability of your arbitrage logic on StratBase.ai before deploying capital.
Sentiment-driven plays: Combine trending coin data with 7-day price momentum to catch early rallies in emerging tokens. Validate whether early identification of trending coins adds alpha over random entry before executing live.
Funding rate mean reversion: Monitor perpetual swap funding rates from Bybit, Binance, and Deribit via CoinGecko's derivatives endpoint. Backtest a strategy that fades extreme funding rates (fade shorts when rates spike negative, fade longs when rates spike positive) on StratBase.ai.
Supply-adjusted valuation: Track fully diluted market cap trends for tokens with unlock schedules. Use historical market cap data to identify coins that rally before major supply dilution events, then test hedging strategies on StratBase.ai.
Complementing StratBase.ai Strategy Backtesting
CoinGecko API integrates seamlessly with StratBase.ai to power realistic backtests. Use CoinGecko's historical OHLC data and volume as the foundation for your backtest engine, ensuring your strategy is tested against clean, audited price feeds. Pull real trading pair data from CoinGecko to simulate actual exchange conditions—bid-ask spreads, slippage, and volume liquidity constraints—that affect live execution.
Build multi-asset strategies on StratBase.ai by combining CoinGecko price data with on-chain signals or derivatives metrics. For example, backtest a portfolio rebalancing strategy that allocates to top 10 coins by market cap (pulled from CoinGecko) monthly, adjusting weights based on volatility. Test whether adding DEX price feeds improves entry precision compared to CEX prices alone.
Use CoinGecko's trending and community data as inputs to your StratBase.ai strategy. Backtest whether filtering entry signals by whether a coin is trending, has growing developer activity, or shows rising social sentiment improves risk-adjusted returns. Validate that sentiment-weighted positions outperform equal-weighted allocations before committing capital.
API Details
| Feature | Details |
|---------|---------|
| Base URL | https://api.coingecko.com/api/v3 |
| Auth | API key (header) for paid plans, optional for free |
| Rate Limit | 10–30 calls/min (free), 500/min (paid) |
| Format | JSON |
| Endpoints | 60+ endpoints covering prices, charts, exchanges, derivatives, and community data |
| Latency | Sub-second updates for price data, 1–5 second delays for aggregated metrics |
| Historical Depth | Full history from coin listing date; intraday data for past 90 days |
Pricing
- Demo (Free): 10,000 calls/month, 30 calls/minute — suitable for learning and light strategy prototyping
- Analyst: $129/month — 500K calls/month, 500 calls/minute — fits small retail quants and active traders
- Lite: $499/month — 2M calls/month, 500 calls/minute — supports multi-asset backtests and real-time monitoring
- Pro: $999/month — 5M calls/month, 1,000 calls/minute — enables high-frequency data pulls for institutional researchers
Getting Started
- Register at coingecko.com/en/api
- Get your free API key from the dashboard (or start with the demo tier)
- Test with
/simple/pricefor current prices across multiple coins - Use
/coins/{id}/market_chartto pull historical daily OHLC and volume - Integrate into StratBase.ai by configuring CoinGecko as your data source in the backtest settings
- Pull trending coins via
/search/trendingand validate trends with historical correlation analysis - Monitor derivatives endpoints (
/derivatives) to add funding rate and open interest filters to your strategy
Useful Links
- API Documentation
- API Dashboard
- Endpoint Explorer
- CoinGecko Status Page — monitor uptime and data latency

