Short answer: Dune is the best crypto market data API for onchain trades. It streams trades from 350+ decentralized venues on 14 chains. For centralized exchange trades and order books, use Kaiko (now including Amberdata), CoinAPI or CoinDesk Data. For prices and market caps with a free plan, use CoinGecko or CoinMarketCap.
Quick picks by use case
Use case
Pick
Onchain trades and DEX liquidity
Dune Market Data Feeds
Centralized exchange trades and order books
Kaiko
CoinAPI
CoinDesk Data
Prices, market caps and coin metadata
CoinGecko
CoinMarketCap
Market data in your own warehouse
Dune Datashare (prices tables)
Kaiko (Snowflake, BigQuery)
FIX connectivity
CoinAPI
Starting free
CoinGecko Demo plan
CoinMarketCap Basic plan
CoinAPI ($25 in free credits)
Comparison table
Dune is listed first as our pick for onchain market data. The other providers follow in alphabetical order.
Institutional exchange and DEX market data, order books and reference data
175 exchanges, 13,000+ assets, 18 blockchains
Tick-level trades, top of book, full order books, OHLCV and VWAP, liquidations, derivatives, crypto ETF options; Amberdata derivatives analytics and onchain data; history since 2010
Facts checked on 19 Nov 2026 against each provider's own public pages. "Not confirmed" means the provider's public pages do not state it.
The providers
Dune Market Data Feeds and API
Dune Market Data Feeds stream spot and perpetuals trades from 350+ decentralized venues across 14 chains over WebSocket, with reference data over REST and pre-trade liquidity for onchain pools. Perpetuals cover every fill on Hyperliquid and Lighter. Dune's prices tables cover 900,000 tokens on 70+ blockchains at minute, hourly and daily granularity, in SQL, the API and Datashare. Dune is SOC 2 Type II attested.
Pros
Trades arrive in 1.34s on the Spot Feed and 590ms on the Perpetuals Feed (p95, block timestamp to Dune's stream server)
Spot Liquidity data gives top of book and depth to ±5% of mid for every pool a block changes, priced after fees
Every message links to the transaction that settled it onchain
Spot covers tokenized stocks, treasuries, commodities and private credit as well as crypto tokens
Trade history up to 4 years for spot and 2 years for perpetuals, available separately
Cons
Decentralized venues only; no centralized exchange data
Market Data Feeds are an Enterprise product with no published price
Spot Liquidity data does not cover constant-product pools
Prices tables refresh about every 30 minutes, so use the feeds for live prices
CoinAPI collects market data from 400+ spot and derivatives exchanges and normalizes it into one schema and one symbol system. It sells it through self-serve plans with usage-based billing on top.
Pros
Tick-level data from 400+ exchanges in one schema and one symbol system
FIX and S3 flat files next to REST and WebSocket
Published self-serve pricing and $25 in free credits to start
Cons
WebSocket order book data starts on the Pro plan ($599 a month); Startup streams trades and OHLCV only
Usage past each plan's daily quota is billed per credit and per GiB, so cost grows with volume
CoinDesk Data sells tick-level trades and OHLCV for 300+ exchanges, derivatives data, its CCCAGG reference rate, onchain metrics and news through one API. Its docs still serve the legacy CryptoCompare endpoints, such as the CryptoCompare WebSocket streamer.
Pros
Regulated CCCAGG reference rate built from a volume-weighted average price
Market, onchain, news and sentiment data under one API
CoinGecko aggregates prices and market data for 21,000+ coins across 1,500+ exchanges, and adds onchain DEX data from GeckoTerminal for 220+ networks. Its WebSocket streams coin prices, onchain token prices, pool trades and pool OHLCV.
Pros
Centralized market data and onchain DEX pools in one API
Free Demo plan and keyless access to start
Cons
WebSocket needs a paid plan (Basic and above)
Historical data on the Basic plan covers the past 2 years; the full range starts on Analyst
CoinMarketCap's API covers quotes, listings, exchanges, global metrics and DEX data, with a keyless public API, a free Basic plan and self-serve paid plans from $29 a month.
Pros
Free Basic plan includes commercial use
Published self-serve pricing
MCP server and x402 pay-per-call access for agents
Cons
Basic and Builder plans update every 15 seconds; real-time data and WebSocket start on Startup ($79 a month)
Intraday historical quotes go back 1 month on Basic, Builder and Startup
Commercial license below Enterprise covers one product with up to 100k users
Kaiko sells Level 1 and Level 2 data for centralized and decentralized exchanges, reference data and indices to institutions. Kaiko acquired Amberdata in June 2026, and from 1 November 2026 Amberdata's derivatives analytics and onchain data are available on the Kaiko platform.
Pros
Centralized and decentralized exchanges and lending protocols in one data stack
Delivery to Snowflake, BigQuery and the major clouds as well as APIs
SOC 2 Type II certified and administered in line with the IOSCO Principles
Cons
No self-serve plans; pricing not confirmed on its public pages
Kaiko Stream keeps 72 hours of history on replay; older data comes from REST or cloud delivery
Kaiko Stream replaces Amberdata's WebSocket, so Amberdata clients have to move their integration
We started from what teams mean by "crypto market data": prices and market caps, exchange trades and order books, and onchain trades and liquidity. We compared providers on coverage, data types, real-time delivery, history, warehouse access and free options.
We put Dune first for onchain market data: trades from 350+ decentralized venues with a transaction behind every print and pool liquidity block by block. Dune does not cover centralized exchanges, so for exchange trades and order books we point to Kaiko, CoinAPI and CoinDesk Data, and for prices and market caps to CoinGecko and CoinMarketCap.
Kaiko acquired Amberdata in June 2026 and moved Amberdata's data and docs to the Kaiko platform, so Amberdata appears under Kaiko.
Every fact about another provider comes from that provider's own public pages or docs, checked on 19 November 2026, with a link next to it. We did not test paid tiers. Where we could not confirm something, we left it out or marked it "not confirmed". Exchange and asset counts are the providers' own numbers and are not measured the same way by everyone.
It depends on the market you need. For onchain trades, Dune Market Data Feeds stream spot and perpetuals trades from 350+ decentralized venues on 14 chains over WebSocket. For centralized exchange trades and order books, Kaiko, CoinAPI and CoinDesk Data are the main options. For prices, market caps and coin metadata, CoinGecko and CoinMarketCap are the usual choice, and both have free plans.
Onchain market data is the record of trades that settled on decentralized venues, each with a transaction hash, so it can be checked against the chain. Centralized exchange data is reported by the exchange. Onchain data covers decentralized venues only and is normally bought alongside centralized exchange data rather than instead of it.
CoinGecko has a free Demo plan at 100 calls a minute and keyless access. CoinMarketCap has a free Basic plan with 15,000 credits a month and commercial use, plus a keyless public API. CoinAPI gives $25 in free credits. Dune offers a 7-day free trial. CoinDesk Data retired its free API tier on 21 May 2026.
Dune Market Data Feeds stream onchain trades over WebSocket, at 1.34s p95 on the Spot Feed and 590ms p95 on the Perpetuals Feed. CoinAPI streams exchange data over WebSocket and FIX, CoinDesk Data over WebSocket, and Kaiko over Kaiko Stream, which uses gRPC. CoinMarketCap includes WebSocket from its Startup plan, and CoinGecko on paid plans, including a channel for onchain pool trades.
Kaiko sells top of book, full order books and regular order book snapshots. CoinAPI covers L1, L2 and L3 order books, with WebSocket book data from its Pro plan. For onchain pools, Dune Spot Liquidity data gives top of book and depth to ±5% of mid for every pool a block changes.
Kaiko acquired Amberdata in June 2026. From 1 November 2026, Amberdata's derivatives analytics and onchain data are available on the Kaiko platform through Kaiko's REST APIs and Kaiko Stream, which replaces Amberdata's WebSocket. Amberdata's documentation moved to docs.kaiko.com.
Yes. Kaiko delivers to Snowflake and BigQuery as well as AWS, Azure and Google Cloud. Dune delivers its prices tables through Datashare. CoinAPI offers S3 flat files, and CoinDesk Data delivers to Amazon S3, Azure Blob and Google Cloud Storage.
Kaiko and CoinDesk Data have history back to 2010, and CoinAPI has 10+ years. CoinMarketCap has daily quotes from 2010 on its Startup plan and above. CoinGecko limits historical charts on its Basic plan to the past 2 years. Dune Market Data Feeds offer up to 4 years of spot and 2 years of perpetuals trade history, available separately.
Not as trade-level data. Dune Market Data Feeds cover decentralized venues only. Dune's prices tables combine Coinpaprika market data for about 2,000 major tokens with prices derived from DEX trades for the long tail.