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 all plans.

20,000 credits a month, no credit card. WebSocket and SSE streaming are available on all plans.

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 an API key.

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

DEX streaming is available on every plan, with plan-specific message prices, update intervals and connection limits.

Coinranking API plans and limits
FreeBasicStartupGrowthProfessional
Monthly price$0$24$49$99$199
Monthly credits20,000500,0001,000,0002,000,0005,000,000
REST rate limit5 / second1,000 / minute2,000 / minute4,000 / minute6,000 / minute
WebSocket and SSE accessIncludedIncludedIncludedIncludedIncluded
Credits per delivered message0.050.0250.010.0050.0025
Minimum update interval60s10s5s1s1s
Shared streaming connections1251020
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 an API key. Professional offers a 30-day free trial.

20,000 credits a month, no credit card. WebSocket and SSE streaming are available on all plans.

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