TOKEN PRICE API · GraphQL · WebSocket · Kafka · gRPC

Crypto Token Price & OHLCV API real-time USD prices across 40+ chains

Skip running price oracles and stitching together DEX feeds. We aggregate every on-chain swap into one normalized USD price — so the latest price, OHLCV candles, historical series and a cross-DEX index for any token are one query away, or a live stream.

Powering prices forNansen logoPump.fun logoLukka logoCoinMarketCap logo
EVM.DEXTradeByTokensLatest USD price for any token, aggregated from on-chain DEX liquidity.Docs
token_price_usd.graphqlCopy
query {
  EVM(network: eth) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency:
        {Symbol: {is: "WETH"}}}}
    ) {
      Trade {
        PriceInUSD
        Currency { Symbol }
      }
    }
  }
}
responseSTREAMING
TokenChainPrice (USD)24h
200 · GraphQL · 180msgraphql.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 price oracle

Building your own price feed is harder than it looks.

Pricing a token yourself means indexing every DEX, picking the right pools, weighting them by liquidity and guarding against thin-pool manipulation — per chain, forever. We already aggregate on-chain liquidity into one normalized USD price, so you get an answer across every chain at once.

What you're doing
Build it yourself
Bitquery Price API
A token's USD price right now
Index DEXs, pick pools, weight them
A single GraphQL query
OHLCV candles for any pair
Aggregate trades into buckets yourself
Candles at any interval, built in
A robust cross-DEX price
Hand-roll a VWAP across venues
Volume-weighted index, built in
Solana and EVM prices in one place
Two stacks, two schemas
One schema across chains
Historical price at any date
Store and backfill years of trades
Time-series, one query away
Resistance to thin-pool spoofing
Detect and filter outliers yourself
Liquidity-weighted, with confidence
02
Delivery channels

Four ways to get prices — 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
Price sources

Every DEX, aggregated into one price.

A single query prices a token from every DEX on a chain at once. We weight pools by liquidity and roll them up into a robust cross-DEX index — so you read one normalized USD price per token, not a tangle of per-pool quotes.

SourceTypeWhat you get
UniUniswapV2 · V3 · V4Deepest EVM liquidity — the backbone of most USD price discovery
RdRaydiumAMM · CLMMPrimary Solana price source for SOL, memecoins and new tokens
PcPancakeSwapV2 · V3BNB Chain & Base pricing for tokens thin on Ethereum
CvCurveStableSwapStablecoin & pegged-asset pricing with minimal slippage
AeAerodromeve(3,3) + SlipstreamBase's deepest pools — pricing for Base-native assets
IxCross-DEX IndexVWAP · AggregatedVolume-weighted price across every venue, robust to thin pools
+ Orca, Meteora, SushiSwap, Balancer & every DEX across 40+ chains feeding the price index
05
Build it this weekend

The price products people ship on us.

Each one is a filter on the same indexed price data — subscribe over Kafka or gRPC for live tickers, or query GraphQL for charts and valuations.

gRPC · WebSocket

Build a live price ticker

Stream the latest USD price for any token and push it straight to your UI or trading bot — sub-100ms, across every chain.

subscribe DEXTradeByTokens
  Trade { PriceInUSD # live USD }
Read the docs
GraphQL

Render OHLCV charts

Aggregate raw trades into open-high-low-close-volume candles per pair and interval — the feed behind TradingView-style charts.

DEXTradeByTokens {
  Block { Time(interval) } # 1s–1d
}
Read the docs
GraphQL

Portfolio valuation

Price a whole wallet's holdings in USD at the current or any historical date — value positions and compute PnL across chains.

DEXTradeByTokens
  where: { Block: { Time: { since: "2024-01-01" } } }
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
40+
Chains priced from on-chain liquidity
<100ms
Kafka & gRPC price-stream latency
1.8M+
Token pairs priced 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

Token price & OHLCV questions, answered.

How do I get a token's USD price with Bitquery?
Query the DEXTradeByTokens dataset for any token and read PriceInUSD — aggregated from on-chain DEX liquidity. Sign up at ide.bitquery.io for an API key, then fetch the latest price for any token across 40+ chains from a single endpoint, or subscribe to stream it live.
What OHLCV intervals are supported?
Any interval from one second to one day. Use the Block.Time(interval:) argument to bucket trades into 1s, 1m, 5m, 1h, 1d or custom candles, with open, high, low, close and volume computed for each bucket — ready for charting libraries.
Can I get historical token prices?
Yes. Add a Block.Time filter with a since date to read time-series USD prices for any past date or range — ideal for backfilling charts, portfolio valuations and accounting.
Do you provide Solana token prices?
Yes. The Solana.DEXTradeByTokens dataset prices SOL, memecoins and any SPL token from Raydium, Orca, Meteora and Jupiter liquidity over gRPC, WebSocket and GraphQL with sub-100ms latency.
How accurate is the price, and how is it aggregated?
Prices come straight from on-chain swaps and are volume-weighted across every DEX on a chain, so a single thin or manipulated pool can't move the quote. The cross-DEX index returns a normalized USD price with a source breakdown and confidence, robust against low-liquidity spoofing.
What's the difference between this and the DEX Trades API?
The DEX Trades API gives you every individual swap; the Price API aggregates those swaps into a clean USD price, OHLCV candles and a cross-DEX index. Both share the same indexed data and GraphQL endpoint.

Ship your price feed this week.

Free API key, every chain priced, no oracle to run. Fetch a token's USD price and stream live OHLCV in your first call.

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