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
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
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in CoinMarketCap
Implement the four adapter methods (
account,positions,submit_market_orderand 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
- CoinGecko API GuideThe independent crypto price aggregator: prices, OHLC, market caps and on-chain DEX data for 15,000+ coins, with a free Demo key.
- CoinAPI API GuideNormalized crypto market data from hundreds of exchanges: OHLCV, trades, quotes and order books over REST, WebSocket and FIX.
- Messari API GuideCrypto research data: asset profiles, fundamentals, token unlocks, news and AI-summarized intel through the Messari API.
- CoinDesk Data API GuideThe renamed CryptoCompare (then CCData): crypto prices, OHLCV, order books and news across hundreds of exchanges.
Independent guide. AlgoGP is not affiliated with CoinMarketCap. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.