Onchain DEX Trading Data API for 300+ DEXs across 40+ chains
Skip running indexers and log decoders for Uniswap, Raydium, PancakeSwap and 300+ other DEXs. We've already decoded every swap, pool and pair across 40+ chains — so trades, OHLCV candles, liquidity and new pairs are one query away, or a live stream.
subscription { EVM(network: eth) { DEXTrades( where: {Trade: {Dex: {ProtocolName: {is: "uniswap_v3"}}}} ) { Trade { Buy { Price Amount Currency { Symbol } } Dex { ProtocolName } } } } }
Raw DEX data wasn't built for the questions you're asking.
Reading DEX trades yourself means an archive node per chain, a hand-written decoder per protocol version and a subgraph you babysit through every redeploy — and it still stops at the chain boundary. We did the indexing, so you get answers across every chain at once.
Four ways to get DEX data — one schema underneath.
Design your query once in GraphQL, then read the exact same fields as GraphQL streams, Kafka, gRPC or a bulk cloud export. Pick the channel that fits your latency and volume — no second pipeline.
Every major venue, decoded into one feed.
A single DEXTrades query spans every DEX on a chain. Filter by token, pair, pool, wallet or protocol — and aggregate to OHLCV candles, liquidity events, top traders or pool volume.
Every DEX dataset, one GraphQL endpoint.
From a single swap to OHLCV candles and top-trader leaderboards, the full DEX surface is one endpoint — no node, no subgraph, no custom indexer. Each dataset is historical and streamable in real time over WebSocket, Kafka or gRPC.
DEX Trades API
Every buy and sell across 300+ DEXs with price, amount, counterparty and protocol — decoded and MEV-tagged.
Read the docs →PricesOHLCV & Price API
Open-high-low-close-volume candles at any interval, plus a USD price for any token straight from on-chain trades.
Read the docs →LiquidityLiquidity & Pools API
Pool reserves, TVL, mint / burn and LP events across AMMs — track depth as it moves.
Read the docs →DiscoveryPair Creation API
Discover new pairs the moment they're created, with first-trade and first-liquidity signals for snipers and scanners.
Read the docs →WalletsTop Traders API
Rank wallets for any token by realized volume, PnL or trade count — the feed behind leaderboards and copy-trading.
Read the docs →SolanaSolana DEX API
Raydium, Orca, Meteora and Jupiter swaps over gRPC, WebSocket and GraphQL with sub-100ms latency.
Read the docs →The DEX products people ship on us.
Each one is a filter on the same indexed data — subscribe over Kafka or gRPC for bots, or query GraphQL for dashboards.
Snipe new token launches
Stream the first trade and first liquidity on Uniswap, PancakeSwap or Raydium the moment a pair goes live, filtered by deployer or market cap.
where: { Trade: { Dex: { ProtocolName: "uniswap_v2" } } }
Wallet PnL & trade history
Pull a wallet's full DEX trade history with a USD price on every swap to compute realized PnL across every chain it traded on.
where: { Trade: { Sender: "<wallet>" } }
Build OHLCV price charts
Aggregate raw DEX trades into candlesticks per pair and interval — the feed behind TradingView-style charts.
open: PriceInUSD # 1m / 5m / 1h
}
What teams say about our data
"We did a thorough search of the market for the best onchain data. Bitquery came out on top — and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."
Bitquery does the hard work of parsing blockchain transaction data into a usable form so that we don't have to. We use their interface to diagnose issues with complex transactions and their analytics as a starting point for our own.
They proved they had the technology to deliver sophisticated data solutions. We extended our support through the Binance X fellowship — building an open-source library of visualization widgets on their blockchain data.
The complex raw data is available at different levels of detail and from different viewpoints — whether we need simple aggregated transfers or parameters for failed contract calls. The support is responsive, friendly and quick.
Partnering with Bitquery has been highly cost-effective — leveraging their established infrastructure rather than building our own let us rapidly expand our blockchain support and reach a much broader segment of on-chain users.
Bitquery's products are very intuitive and easy to use. We currently use their products to obtain DEX-related trading and liquidity information, which saves us the manpower and tedious technical details required to develop our own system. Their excellent technical team deserves special praise; they provide near-24/7 support and resolve issues quickly. I greatly appreciate their products and work ethic.
Bitquery provides the infrastructure we rely on every day. Fast, reliable, and comprehensive across the chains that matter to our business.
Start free. Scale when you ship.
Query every blockchain on every plan — no chain is paywalled. Move to commercial when you need volume, SLAs and bulk datashares.
- All blockchains, all plans
- 10 requests / minute
- 2 streams for testing
- GraphQL IDE access
- Scalable calls, no throttling
- SQL, Cloud, Kafka & more
- 24/7 engineering access
- Dedicated onboarding & SLA
- Snowflake, BigQuery, S3, Azure
- No setup or infrastructure
- Structured for AI agents & MCP
- Audit data for custodians
DEX data questions, answered.
How do I get DEX trade data with Bitquery?
Which DEXs and chains are supported?
Can I get OHLCV candles and token prices?
Can I stream DEX trades in real time?
Do you support Solana DEXs like Raydium and Jupiter?
How do I find new pairs and liquidity events?
Ship your DEX product this week.
Free API key, every DEX unlocked, no node to run. Query historical trades and stream live swaps in your first call.