DEX TRADES API · GraphQL · WebSocket · Kafka · gRPC

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.

Powering DEX data forDexTools logo1inch logoNansen logo3Commas logo
EVM.DEXTradesReal-time swaps across every EVM DEX — Uniswap, PancakeSwap, Curve & more.Docs
dex_trades.graphqlCopy
subscription {
  EVM(network: eth) {
    DEXTrades(
      where: {Trade: {Dex:
        {ProtocolName: {is: "uniswap_v3"}}}}
    ) {
      Trade {
        Buy { Price Amount
          Currency { Symbol } }
        Dex { ProtocolName }
      }
    }
  }
}
responseSTREAMING
Pair · DEXSidePriceAmount
200 · gRPC · 92msstreaming.bitquery.io
Trusted by 40,000+ developers & teams like
Binance logoChainalysis logoTRM Labs logoNansen logo0x logoCoinMarketCap logoCoin Metrics logoBybit logoLukka logo3Commas logoNexo logoTether logo
40+
Chains supported
1PB+
Blockchain data indexed
10B+
API calls / month
99.9%
Production uptime
01
Forget the subgraph

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.

What you're doing
Build it yourself
Bitquery DEX API
A token's full trade history
Replay logs on an archive node
A single GraphQL query
Uniswap V2, V3 and V4 trades
A decoder per version
Decoded for every version
Solana and EVM in one place
Two stacks, two schemas
One schema across chains
New pairs and first liquidity
Poll factories and decode
Streamed the moment they trade
OHLCV candles for any pair
Aggregate trades yourself
Candles at any interval, built in
USD price on every swap
Join an external price feed
Priced at the row, on-chain
02
Delivery channels

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.

03
DEX & protocol coverage

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.

VenueTypeWhat you get
UniUniswapV2 · V3 · V4Swaps, pools, hooks, OHLCV & LP events across every EVM chain
RdRaydiumAMM · CLMMSolana's largest AMM — swaps, pools and new pair launches
PcPancakeSwapV2 · V3BNB Chain, Ethereum, Base & Arbitrum swaps and pools
JuJupiterAggregatorRouted Solana swaps decoded down to the underlying venue
AeAerodromeve(3,3) + SlipstreamBase's #1 DEX — V1 and concentrated-liquidity trades
CvCurveStableSwapStable and crypto pool trades, fees and liquidity, multi-chain
+ Orca, Meteora, SushiSwap, Balancer, 1inch & 300+ DEXs across 40+ chains
05
Build it this weekend

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.

gRPC · Kafka

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.

subscribe DEXTrades
  where: { Trade: { Dex: { ProtocolName: "uniswap_v2" } } }
Read the docs
GraphQL

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.

DEXTradeByTokens
  where: { Trade: { Sender: "<wallet>" } }
Read the docs
GraphQL

Build OHLCV price charts

Aggregate raw DEX trades into candlesticks per pair and interval — the feed behind TradingView-style charts.

DEXTradeByTokens {
  open: PriceInUSD # 1m / 5m / 1h
}
Read the docs

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."

A
Alexander Karsten
Nansen
300+
DEX protocols decoded into one schema
<100ms
Kafka & gRPC stream latency
1.8M+
Token pairs tracked across venues

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.

0x Protocol logo
Alex Knaggs
0x Protocol

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.

Director, Binance X logo
Flora Sun
Director, Binance X

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.

Backend Developer, Blockpit logo
Jan Dreske
Backend Developer, Blockpit

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.

Co-Founder, Syla logo
Nick Christie
Co-Founder, Syla

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.

Ourbit logo
Data Team
Ourbit

Bitquery provides the infrastructure we rely on every day. Fast, reliable, and comprehensive across the chains that matter to our business.

Webacy
Webacy
webacy.com
06
Pricing

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.

Developer
$0 / month
Free plan for developers or small projects.
  • All blockchains, all plans
  • 10 requests / minute
  • 2 streams for testing
  • GraphQL IDE access
Get started free
Most popular
Commercial
Custom
Tailored solutions for business and enterprise.
  • Scalable calls, no throttling
  • SQL, Cloud, Kafka & more
  • 24/7 engineering access
  • Dedicated onboarding & SLA
Talk to sales
Datashares
Custom
Bulk historical & real-time data on your cloud.
  • Snowflake, BigQuery, S3, Azure
  • No setup or infrastructure
  • Structured for AI agents & MCP
  • Audit data for custodians
Talk to sales
FAQ

DEX data questions, answered.

How do I get DEX trade data with Bitquery?
Query the DEXTrades dataset through our GraphQL API, WebSocket subscriptions, Kafka streams or gRPC. Sign up at ide.bitquery.io for an API key, then filter swaps by token, pair, pool, wallet or protocol across 40+ chains from a single endpoint.
Which DEXs and chains are supported?
300+ DEX protocols across 40+ chains — including Uniswap (V2/V3/V4), PancakeSwap, Curve, Aerodrome and SushiSwap on EVM chains, and Raydium, Orca, Meteora and Jupiter on Solana — all decoded into one schema.
Can I get OHLCV candles and token prices?
Yes. Aggregate raw trades into open-high-low-close-volume candles at any interval with DEXTradeByTokens, and read a USD price on every swap. For pre-aggregated prices, see the Token Price API.
Can I stream DEX trades in real time?
Yes. Subscribe over WebSocket, Kafka or gRPC with sub-100ms latency for new trades, new pairs, pool events and liquidity changes — built for trading bots, scanners and alerting.
Do you support Solana DEXs like Raydium and Jupiter?
Yes. The Solana.DEXTrades dataset decodes Raydium, Orca, Meteora and Jupiter swaps — including routed Jupiter trades resolved to the underlying venue — over gRPC, WebSocket and GraphQL.
How do I find new pairs and liquidity events?
Subscribe to new-pair and pool-creation events to catch a market the moment it opens, then follow reserves, mint/burn and LP events on the same schema — ideal for snipers, scanners and liquidity dashboards.

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.

No credit card · 10K free points for your first month · All 40+ chains included