Guide
Market dataCryptoOn-chain API key

Coin Metrics API guide

Coin Metrics is best known for on-chain network data (active addresses, fees, supply) and also offers exchange market data, which together support fundamental crypto strategies.

Last verified

Quick answer

Coin Metrics API v4 serves crypto market data (candles, trades, order books, funding, open interest, liquidations, options Greeks) and on-chain network metrics. A free Community API needs no key for many network metrics; Pro data needs an API key and a commercial subscription.

Coin Metrics API at a glance

Pricing
Free Community API; Pro is custom
Availability
Worldwide
Paper trading
Not applicable (data only)
Integration type
REST + API key
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Community API
https://community-api.coinmetrics.io/v4 (no key)
Pro API
https://api.coinmetrics.io/v4 with api_key
Python
pip install coinmetrics-api-client
Data
Network metrics, candles, trades, books, derivatives

Example: asset metrics

curl -s "https://community-api.coinmetrics.io/v4/timeseries/asset-metrics?assets=btc&metrics=PriceUSD,AdrActCnt&frequency=1d&page_size=5"

Build a Coin Metrics strategy with AlgoGP

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

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

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

Coin Metrics API: frequently asked questions

Is Coin Metrics free?

The Community API is free for a subset of metrics; Pro data is paid.

Design and backtest your Coin Metrics strategy first

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

Free plan, no card required.

Coin Metrics alternatives

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