New: Stream Prices over Server-Sent Events

Real-Time DEX Data

Live prices and trading pairs from 32 decentralized exchanges, on the same feeds as centralized exchanges, over WebSocket or SSE. WebSocket and SSE streaming are available on Professional and Enterprise.

10,000 requests a month, no credit card. WebSocket and SSE streaming require Professional or Enterprise.

Check your plan for DEX streaming access

UniswapPancakeSwapSushiSwapCurveOrca

Five of the 32 DEXs. Full list

Live DEX Prices per Venue and per Pool

Exchange rates give one price per coin per DEX; tickers give every pool with base and quote volume.

  • The price and 24-hour volume of a coin on one exchange, in US dollars. Subscribe with exchange-uuids[] for whole DEXs, currency-uuids[] for a coin on every venue, or references[] for exact dexUuid_coinUuid pairs.

  • Pool level: market, exchange, base and quote UUIDs, the close price in the quote token, base and quote volume, US-dollar volume and the filters applied. Subscribe with market-uuids[], exchange-uuids[] or currency-uuids[].

Every pair on one DEX
// Tickers for every pool on one DEX, by its exchange UUID
const socket = new WebSocket(
  'wss://api.coinranking.com/v2/real-time/tickers' +
  '?x-access-token=YOUR_KEY' +
  '&exchange-uuids[]=5Sfs67ZcuOWm'   // Uniswap, from /dexs
);

socket.onmessage = (event) => {
  const ticker = JSON.parse(event.data);
  console.log(ticker.marketUuid, ticker.price, ticker.volume);
};

Delivered over WebSocket or Server-Sent Events

DEX streaming is included over both transports. Your plan sets the update interval and shared connection limit.

Transports that carry Coinranking Real-Time DEX Data
WebSocketServer-Sent Events
Base URLwss://api.coinranking.com/v2/real-timehttps://api.coinranking.com/v2/real-time/sse
DirectionTwo-way: change subscriptions mid-streamOne-way: subscriptions in the URL, list=all for everything
Recommended forBack endsFront ends
Feature pageCrypto WebSocket APICrypto Price SSE API

Discover Pools over REST, Keep Them Live over the Stream

Standard REST DEX endpoints have production access on Growth and higher, with daily previews on Free, Basic and Startup. Use them to find UUIDs, then stream with a Professional or Enterprise key and the Real-Time DEX Data add-on.

Endpoints marked Growth have production access on Growth and higher. Free, Basic and Startup can make five successful preview requests per eligible endpoint, per account, each UTC day. Normal usage and plan limits apply. How previews work.

What Developers Build with Real-Time DEX Data

Four things a minute-old pool price cannot do.

CEX–DEX Spread Monitors

One exchange-rates subscription per coin returns its price on every venue, tagged cex or dex. The spread is one subtraction.

New Pool Alerts

Poll new DEX listings for the pool, subscribe to its market UUID, alert on the first tick that crosses a threshold.

DeFi Dashboards

Tickers per pool with base and quote volume, on the same connection as centralized markets.

Wallet Trackers

Tokens that only trade on a DEX, revalued on every tick instead of once a minute.

Real-Time DEX Data by Plan

Check your plan for DEX streaming access, update intervals and connection limits.

Coinranking API plans and limits
FreeBasicStartupGrowthProfessional
Monthly price$0$24$49$99$199
Monthly API requests10,000500,0001,000,0002,000,0005,000,000
REST rate limit5 / second1,000 / minute2,000 / minute4,000 / minute6,000 / minute
WebSocket and SSE accessNot includedNot includedNot includedNot includedIncluded
API keys1125Unlimited
Historical window, where supported1 year5 yearsAll time (from 2010)All time (from 2010)All time (from 2010)
Maximum results per response1005,0005,0005,0005,000

Streaming is also available on Enterprise. Endpoint-specific limits may be lower. Preview allowances are shared across every API key on your account. Every paid plan offers a 30-day free trial. Compare all features.

Real-Time DEX Data Questions

Stream Real-Time DEX Data

Stream DEX data with a Professional or Enterprise key and the Real-Time DEX Data add-on. Professional offers a 30-day free trial.

10,000 requests a month, no credit card. WebSocket and SSE streaming require Professional or Enterprise.

    Real-Time DEX Data: Live Prices from 32 DEXs | Coinranking