Guide
Market dataCrypto API key

CoinMarketCap API guide

CoinMarketCap’s rankings are the reference many funds and media use, and its API exposes the same data.

Last verified · Also known as CoinMarketCap API, CMC API, CoinMarketCap Pro API

Quick answer

The CoinMarketCap Pro API returns rankings, latest quotes, global metrics and, on paid plans, historical quotes and OHLCV. Send your key in the X-CMC_PRO_API_KEY header. The free Basic plan covers latest data with a monthly credit allowance; a sandbox returns mock data.

CoinMarketCap API at a glance

Pricing
Free Basic plan (latest data); history on paid plans
Availability
Worldwide
Paper trading
Not applicable (data only)
Integration type
REST + API key
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Header
X-CMC_PRO_API_KEY
Free
Basic plan: latest endpoints, monthly credits
History
Paid plans

Build a CoinMarketCap strategy with AlgoGP

AlgoGP does not connect to CoinMarketCap natively yet. CoinMarketCap 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 CoinMarketCap

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

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

CoinMarketCap API: frequently asked questions

Does the free CoinMarketCap API include history?

No; historical endpoints require a paid plan.

Design and backtest your CoinMarketCap strategy first

AlgoGP turns an idea into Python and tests it on years of history before you connect it to CoinMarketCap. 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 CoinMarketCap

Free plan, no card required.

CoinMarketCap alternatives

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

Build a strategy