Skip to main content
ChainQuery indexes swaps from decentralized exchanges and launchpads on EVM chains, prices every trade in USD, and serves the results as market data. Use it to build token pages, price charts, trade feeds, portfolio views, token discovery boards and alerting bots. The API has four surfaces. They share the same chains, addresses and token model, so you can mix them freely: load history over REST, then keep it current over a WebSocket.

REST API

Token details, markets (pools), OHLCV candles, price history, cursor-paginated trades, wallet holdings, search and the protocol catalogue.https://api.example.com/api/v1

Channel WebSocket

Subscribe to live trades, token details, market (pool) details and candles for the tokens or pools you follow. Resumable with cursors.wss://api.example.com/v1/ws

Pulse discovery

Ranked token feeds such as new launches, about-to-bond, bonded and trending, plus custom views built from filters and a sort. Available over REST and as a live stream.wss://api.example.com/v1/ws/pulse

Multi-events stream

One subscription for every trade across one or more chains, narrowed with a filter language (pools, tokens, wallets, side, USD size).wss://api.example.com/streams/v1/ws

Which surface should I use?

Supported chains at a glance

REST accepts a chain as 8453 or evm:8453. The WebSocket surfaces only accept evm:8453. See Chains and identifiers for the exact rules on each surface.

Before you start

There is no authentication. The API does not currently read any API key, token or header, so you can call it directly. This may change in the future.

Quickstart

Make your first REST calls and open a live trade subscription in a few minutes.

Responses and errors

The success and error envelopes, and every error code.

Data formats

Numbers vs strings, percent units, timestamps and booleans.

How data flows

How swaps become prices, stats, candles and stream events.