We're building the most comprehensive crypto data API we can, and it's still growing — there's always a coin, a field or an endpoint we haven't got to yet.
Please tell us about any data you think Crypto Data API should nail but doesn't. We're data nerds who love to geek out about market data, trading bots, AI agents, or how to make your trading stack work in general. Prefer a form? Send feedback.
9 on-chain metrics indicators, from the AlgoBrain wiki. Signals read straight from the chain: holder profit/loss, exchange flows, miner and whale behaviour, cycle gauges. Each lists what it measures, the strategies that use it, the Crypto Data API endpoints that serve it or its inputs, and a prompt for an AI agent to compute it. All of them are in the API: GET /api/v1/indicators/catalog?group=on-chain.
Coinbase PremiumCoinbase Premium IndexCoinbase Premium Gap
The Coinbase Premium is the price gap between Bitcoin on Coinbase (quoted in USD, dominated by US institutional and retail flow) and Bitcoin on Binance (quoted in USDT, dominated by offshore/retail flow).
Via API/api/v1/indicators/catalog/coinbase-premium
AI-agent prompt
Compute it with an AI agent
Compute the Coinbase Premium for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/market-microstructure/coinbase-premium.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
Exchange Net Flowsexchange-netflowExchange NetflowExchange Net FlowExchange Reserve
The metric rests on a simple boundary idea: an exchange is where most coins are converted to fiat or stablecoins, so the direction of flow across the exchange wallet boundary is a proxy for net intent to sell versus hold.
Via API/api/v1/indicators/catalog/exchange-netflow
AI-agent prompt
Compute it with an AI agent
Compute the Exchange Net Flows for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/exchange-netflow.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
Compute the HODL Waves for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/hodl-waves.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
Compute the MVRV Ratio for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/mvrv.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
MVRV Z-ScoreMVRV Z Scoremvrv-zscoreBitcoin MVRV Z-Score
The MVRV Z-Score is a standardised version of the MVRV Ratio that expresses the gap between an asset's market cap and its realized cap in units of standard deviation.
Compute the MVRV Z-Score for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/mvrv-z-score.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
A common variant separates the supply into long-term and short-term holder cohorts (LTH-NUPL / STH-NUPL), and entity-adjusted versions strip internal exchange transfers so the cost basis better reflects genuine ownership changes — conceptually adjacent to the adjustment that aSOPR makes to SOPR.
Compute the Net Unrealized Profit/Loss (NUPL) for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/nupl.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
Pi Cycle Toppi-cyclePi Cycle Top IndicatorPi Cycle
The Pi Cycle Top Indicator is a bitcoin cycle-timing tool that compares a short and a long moving average of price to flag potential market-cycle tops.
Used byA building block; no catalogue strategy declares it directly.
Via API/api/v1/indicators/catalog/pi-cycle-top-indicator
AI-agent prompt
Compute it with an AI agent
Compute the Pi Cycle Top Indicator for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/indicators/pi-cycle-top-indicator.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
The intuition: every coin carries an on-chain "timestamp of last movement," and the asset's price at that moment is treated as the cost basis for that coin.
Compute the Realized Price & Realized Cap for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/realized-price.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
The Spent Output Profit Ratio (SOPR) is an on-chain metric that measures whether coins being spent (moved) on-chain are, on average, changing hands at a profit or a loss relative to the price they were last acquired.
Compute the Spent Output Profit Ratio (SOPR) for BTC, ETH and SOL using the CryptoDataAPI (X-API-Key header).
1. Definition and parameters: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/concepts/metrics/sopr.md
2. Inputs:
- GET https://cryptodataapi.com/api/v1/on-chain/score
- GET https://cryptodataapi.com/api/v1/on-chain/exchange-flows/spike-alerts
- GET https://cryptodataapi.com/api/v1/market-intelligence/btc/cycle-indicators
3. Pinned: 4h bars, 500-bar lookback, the playbook's default parameters. Return the latest value, its 30-day percentile, and a one-line read of what it says now. Research only.
Any key works, Free included — mint one in a single call. The list endpoint returns summaries; the per-slug endpoint adds the prompts. Full playbooks come from /api/v1/algobrain/page?path=… using each entry's wiki_path. Or use the MCP server.
What are on-chain metrics indicators?
Signals read straight from the chain: holder profit/loss, exchange flows, miner and whale behaviour, cycle gauges.
Which on-chain metrics indicators are covered?
9: Coinbase Premium, Exchange Net Flows, HODL Waves, MVRV Ratio, MVRV Z-Score, Net Unrealized Profit/Loss (NUPL), Pi Cycle Top Indicator, Realized Price & Realized Cap, Spent Output Profit Ratio (SOPR).
Where do I get on-chain metrics data for crypto?
From these Crypto Data API endpoints: /api/v1/on-chain/score, /api/v1/on-chain/exchange-flows/spike-alerts, /api/v1/market-intelligence/btc/cycle-indicators, /api/v1/on-chain/whales.
Can an AI agent compute these indicators?
Yes. GET /api/v1/indicators/catalog/{slug} returns a prompt naming the endpoints to call and the parameters to pin. Any API key works, Free included.