# ChainQuery > Real-time EVM DEX market data API: tokens, pools, trades, prices, OHLCV, wallets, Pulse discovery feeds and WebSocket streams. - [Introduction](https://sonar-cf3aeac7.mintlify.app/introduction.md): ChainQuery is a real-time market data API for EVM decentralized exchanges: tokens, pools, candles, trades, wallets and live streams. - [Quickstart](https://sonar-cf3aeac7.mintlify.app/quickstart.md): Fetch a token, its candles and its trades over REST, then stream live trades over the WebSocket. - [Chains and identifiers](https://sonar-cf3aeac7.mintlify.app/concepts/chains-and-identifiers.md): Supported chains, how each surface expects a chain id, how chain ids appear in responses, and address rules. - [Responses and errors](https://sonar-cf3aeac7.mintlify.app/concepts/responses-and-errors.md): The REST success and error envelopes, validation error details, and every error code the API can return. - [Data formats](https://sonar-cf3aeac7.mintlify.app/concepts/data-formats.md): How ChainQuery encodes numbers, big integers, percentages, timestamps, booleans and stats windows. - [Pagination and limits](https://sonar-cf3aeac7.mintlify.app/concepts/pagination-and-limits.md): Cursor pagination for trades, offset paging for Pulse, every REST limit and default, WebSocket limits and data freshness. - [Supported DEXs and launchpads](https://sonar-cf3aeac7.mintlify.app/concepts/protocols-and-launchpads.md): Pool type ids, display labels, launchpads and how they appear in tokens, markets, trades and Pulse filters. - [How data flows](https://sonar-cf3aeac7.mintlify.app/concepts/how-data-flows.md): How on-chain swaps become USD prices, rolling stats, candles, REST responses and stream events. - [Build a live price chart](https://sonar-cf3aeac7.mintlify.app/guides/live-price-chart.md): Load candle history from the REST API, then keep the chart live with the ohlcv WebSocket channel, including reconnects, gaps and expired cursors. - [Stream large trades and wallet activity](https://sonar-cf3aeac7.mintlify.app/guides/large-trade-alerts.md): Use the multi-events stream to alert on trades over $100,000 and on trades by watched wallets across Ethereum and Base, with resumable cursors. - [REST API overview](https://sonar-cf3aeac7.mintlify.app/api-reference/overview.md): Base URL, request conventions, the full endpoint index and the response envelope of the ChainQuery REST API. - [Get token](https://sonar-cf3aeac7.mintlify.app/api-reference/token/get-token.md): Details, metadata, launchpad status, windowed trading stats and DexScreener flags for one token. - [Get token markets](https://sonar-cf3aeac7.mintlify.app/api-reference/token/get-token-markets.md): List the pools (markets) that trade a token, ordered by 24h volume, with the token always as the base. - [Get token OHLCV](https://sonar-cf3aeac7.mintlify.app/api-reference/token/get-token-ohlcv.md): USD OHLCV candles for a token, built from its most active pool, from 1-second to 1-month periods. - [Get token price history](https://sonar-cf3aeac7.mintlify.app/api-reference/token/get-token-history.md): Average USD price and volume over time for the cross-chain asset a token belongs to, newest point first. - [Get market details](https://sonar-cf3aeac7.mintlify.app/api-reference/market/get-market-details.md): Get price, liquidity, windowed stats and token details for one pool. Accepts a pool address, a 32-byte pool id or a token address. - [Batch market details](https://sonar-cf3aeac7.mintlify.app/api-reference/market/batch-market-details.md): Get details for up to 100 markets in one request. Unresolved items come back as null instead of failing the batch. - [Get market OHLCV](https://sonar-cf3aeac7.mintlify.app/api-reference/market/get-market-ohlcv.md): Get OHLCV candles for one pool, priced as the USD price of the pool's base token. - [Get asset OHLCV](https://sonar-cf3aeac7.mintlify.app/api-reference/asset/get-asset-ohlcv.md): Get OHLCV candles for a cross-chain asset, built from the asset's sampled USD price. - [Get asset price history](https://sonar-cf3aeac7.mintlify.app/api-reference/asset/get-asset-history.md): Get the USD price history of a cross-chain asset, newest point first. - [List trades](https://sonar-cf3aeac7.mintlify.app/api-reference/trades/get-trades.md): List individual swap trades for a pool or a token, with time filters and cursor pagination. - [Get wallet holdings](https://sonar-cf3aeac7.mintlify.app/api-reference/wallet/get-wallet-holdings.md): Get a wallet's token balances and native coin balance on one chain, valued in USD, filtered and sorted by value. - [Search](https://sonar-cf3aeac7.mintlify.app/api-reference/search/search.md): Search tokens, pools and cross-chain assets by name, symbol or address, or list the top pools. - [List protocols](https://sonar-cf3aeac7.mintlify.app/api-reference/protocols/get-protocols.md): List the supported chains with the pool types, DEXes and launchpads indexed on each. - [Data freshness (last swaps)](https://sonar-cf3aeac7.mintlify.app/api-reference/health/get-last-swaps.md): Check how recently ChainQuery indexed a swap on each chain. Returns 503 when any chain is stale. - [WebSocket overview](https://sonar-cf3aeac7.mintlify.app/websocket/overview.md): Stream live DEX trades, token and market data, and OHLCV candles over one WebSocket connection. - [Message reference](https://sonar-cf3aeac7.mintlify.app/websocket/messages.md): Every message you can send to /v1/ws and every message the server sends back. - [Cursors and resuming](https://sonar-cf3aeac7.mintlify.app/websocket/cursors-and-resume.md): Track your position in the stream and resume after a disconnect without missing or repeating trades. - [Limits, close codes and errors](https://sonar-cf3aeac7.mintlify.app/websocket/limits-and-errors.md): Connection limits on /v1/ws, the close codes the server uses, and every error code a subscription can return. - [fast-trade channel](https://sonar-cf3aeac7.mintlify.app/websocket/channels/fast-trade.md): Receive every trade of a token or pool as it happens, with no enrichment. - [token-details channel](https://sonar-cf3aeac7.mintlify.app/websocket/channels/token-details.md): Receive every trade of up to 100 tokens, each with the token's details, market cap and stats at that trade. - [market-details channel](https://sonar-cf3aeac7.mintlify.app/websocket/channels/market-details.md): Receive every trade in up to 100 pools, each with the pool's market data and reserves at that trade. - [ohlcv channel](https://sonar-cf3aeac7.mintlify.app/websocket/channels/ohlcv.md): Receive the current OHLCV candle of a pool or token after every trade that changes it. - [Pulse overview](https://sonar-cf3aeac7.mintlify.app/pulse/overview.md): Ranked token discovery feeds for new launches, tokens about to bond, migrated tokens, trending tokens or your own custom views, over REST and WebSocket. - [Views and models](https://sonar-cf3aeac7.mintlify.app/pulse/views-and-models.md): How to describe a Pulse view: the request object, preset models, how your filters and sort combine with a preset, and the limits that apply. - [Filters and sortable fields](https://sonar-cf3aeac7.mintlify.app/pulse/filters-and-fields.md): The 94 Pulse fields you can filter and sort on, the operators, special filters such as keyword, source and socials, and the validation messages you can get back. - [Pulse token object](https://sonar-cf3aeac7.mintlify.app/pulse/token-object.md): The token object returned in every Pulse view: token details and stats, the top pool with its quote token, and how live and database answers differ. - [Query views](https://sonar-cf3aeac7.mintlify.app/pulse/rest-views.md): Fetch one or more ranked Pulse views in a single request. Returns raw JSON keyed by view name. - [Count view results](https://sonar-cf3aeac7.mintlify.app/pulse/rest-views-pagination.md): Get the total number of tokens that match each Pulse view, to build page controls. Takes the same body as Query views. - [Query views (native format)](https://sonar-cf3aeac7.mintlify.app/pulse/native-views.md): Fetch ranked Pulse views with the strict camelCase request format. Answered from the database and wrapped in the standard success envelope. - [Pulse live stream](https://sonar-cf3aeac7.mintlify.app/pulse/stream.md): Subscribe to Pulse views over WebSocket. Get a ranked snapshot, then real-time token-added, token-updated and token-removed messages. - [Multi-events stream overview](https://sonar-cf3aeac7.mintlify.app/streams/overview.md): One WebSocket subscription for DEX trades across several chains, with server-side filters, per-pair cursors and resume. - [Subscribing](https://sonar-cf3aeac7.mintlify.app/streams/subscribing.md): Subscribe, unsubscribe and ping on the multi-events stream: params, pairs, the subscribed reply, the event envelope and sampling. - [Event payloads](https://sonar-cf3aeac7.mintlify.app/streams/event-payloads.md): Fields of the swap and swap-enriched events on the multi-events stream, and how to derive buy or sell from them. - [Filters](https://sonar-cf3aeac7.mintlify.app/streams/filters.md): Filter grammar for the multi-events stream: operators, fields, buy and sell, limits, validation errors and a cookbook. - [Cursors and resuming](https://sonar-cf3aeac7.mintlify.app/streams/cursors-and-resume.md): Per-pair cursors on the multi-events stream, resuming with since, checkpoints, RESUME_EXPIRED, gaps and a reconnect recipe. - [Limits and subscription cost](https://sonar-cf3aeac7.mintlify.app/streams/limits-and-cost.md): How multi-events subscriptions are priced against the per-connection budget, plus message, rate, buffer and heartbeat limits, close codes and error codes. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.