Guide
Market dataCryptoOn-chain API key

CoinGecko API guide

CoinGecko is the default price source for crypto dashboards and screeners because it covers far more coins than any exchange.

Last verified · Also known as CoinGecko API, GeckoTerminal API

Quick answer

CoinGecko’s API serves prices, market caps, volumes, OHLC and historical charts for 15,000+ coins, plus DEX pool data through its on-chain (GeckoTerminal) endpoints. The free Demo plan needs a key sent as x-cg-demo-api-key with a monthly call cap; paid plans use x-cg-pro-api-key on pro-api.coingecko.com with more history and higher limits.

CoinGecko API at a glance

Pricing
Free Demo plan; paid plans for higher limits
Availability
Worldwide
Paper trading
Not applicable (data only)
Integration type
REST + API key
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Free
Demo key, monthly call cap
Ids
Coin ids like bitcoin, ethereum (see /coins/list)
OHLC
/coins/{id}/ohlc?vs_currency=usd&days=…
On-chain
DEX pools and tokens by network

Build a CoinGecko strategy with AlgoGP

AlgoGP does not connect to CoinGecko natively yet. CoinGecko uses plain HTTPS with an API key, so it is a good candidate for a native adapter; it is not built in yet.

  1. 1

    Design and backtest in AlgoGP

    Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.

  2. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in CoinGecko

    Implement the four adapter methods (account, positions, submit_market_order and a candle fetcher) with CoinGecko’s SDK, or keep a built-in platform for paper trading and add CoinGecko when you go live.

Built-in data sources for the same markets: Alpaca, Binance, Coinbase Exchange, Yahoo Finance.

CoinGecko API: frequently asked questions

Is the CoinGecko API free?

Yes, the Demo plan is free with a key; paid plans add history and limits.

Is CoinGecko good for backtesting?

Its aggregated prices suit daily screening; for intraday execution backtests use exchange candles.

Design and backtest your CoinGecko strategy first

AlgoGP turns an idea into Python and tests it on years of history before you connect it to CoinGecko. The exported code keeps the broker behind four small adapter methods.

  • AI copilot writes and revises the rules
  • Backtests with realistic costs
  • Exported Python ready to wire to CoinGecko

Free plan, no card required.

CoinGecko alternatives

Independent guide. AlgoGP is not affiliated with CoinGecko. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.

Build a strategy