REST APICrypto

CoinGecko API (Coins OHLC & Market Data)

CoinGecko API (Coins OHLC & Market Data) is a rest api from CoinGecko providing crypto data. CoinGecko's REST API serves aggregated spot prices, market data, and OHLC candles across thousands of coins and 1,500+ exchanges. A Polymarket bot uses it to backfill historical hourly/daily OHLC and pull reliable cross-exchange reference prices for altcoins powering "will X close above $Y" markets, beyond what a single exchange feed provides.

At a glance

ProviderCoinGecko
TypeREST API
CategoryCrypto
Real-timeNo — request/response
AuthAPI key
PricingFree Demo tier (10k calls/mo, 100 calls/min); paid from $35/mo (Basic) — Demo: Free, 100 calls/min, 10,000 calls/mo, no card required, Basic: $35/mo ($29/mo yearly), 300 calls/min, 100k calls/mo, Analyst: $129/mo ($103/mo yearly), 500 calls/min, 500k calls/mo, Lite: $499/mo, 2M calls/mo; Enterprise: custom; overage $0.0005/call

What data it provides

  • OHLC candles per coin [timestamp, open, high, low, close] via /coins/{id}/ohlc
  • Auto-granularity candles: 30m (1-2d), 4h (3-30d), 4d (31d+); daily/hourly intervals on paid plans
  • Aggregated spot prices across 1,500+ exchanges (cross-exchange volume-weighted)
  • Market chart data: price, market cap, and 24h volume time series
  • On-chain DEX prices via GeckoTerminal: 200+ networks, 1,800+ DEXes, 39M+ tokens
  • Coverage: 18,000+ coins and 600+ categories

Features

  • Demo free tier: 100 calls/min, 10k/mo; Basic 300/min, scaling to 500/min on higher paid tiers
  • Historical OHLC depth up to 'max' (full history); daily/hourly granularity unlocked on paid plans
  • Data cached/updated ~every 60s (not tick-level); OHLC endpoint cache refresh ~15 min
  • Broad coverage: 18,000+ coins, 1,500+ exchanges, plus GeckoTerminal on-chain across 200+ chains
  • Pro base URL https://pro-api.coingecko.com/api/v3; Demo at api.coingecko.com
  • Community client libraries (Python pycoingecko, Node, etc.); also offers WebSocket streams on paid plans

Links

Use it in a bot

Other crypto data sources

Listed, not endorsed. Pricing and capabilities change without notice — check the provider's own documentation before you depend on anything here. Browse the full data resources directory or the strategy database.
Join Discord