Skip to main content
POST
The batch version of Get market details. Send a JSON array of 1 to 100 lookups and get back an array of markets in the same order. Each item is resolved on its own, with the same rules as the single-market endpoint:
  • Pool resolution: address is looked up as a pool first (pool address or 32-byte pool id). If no pool matches, it is treated as a token and that token’s best pool (highest 24h volume among up to 25 of its pools) is used.
  • Orientation: baseToken sets the base side if it is one of the pool’s tokens. Otherwise the pool’s default base is used, falling back to token0. When you look up a token address, pass the same address as baseToken to make sure prices are for that token.
See How the pool is resolved and Base and quote orientation for details. The endpoint returns 200 OK (not 201), and it never returns 404 for a single missing market: an item that can’t be resolved becomes null in the result.

Request body

Send Content-Type: application/json. The body is a JSON array (not an object) with 1 to 100 items. Each item in the array has these fields:
string
required
Pool address (0x + 40 hex), 32-byte pool id (0x + 64 hex), or token address (0x + 40 hex). Case-insensitive.
string
required
Chain id as a JSON string: "1" or "evm:1". A JSON number such as 1 is rejected, and so are chain names.
string
Token address (0x + 40 hex) to use as the base side. Ignored if it is not one of the pool’s tokens.
The same pool can appear more than once; each occurrence gets its own result.

Response

"success"
Always success for a 2xx response.
(MarketDetailsOutput | null)[]
One entry per request item, in request order and with the same length as the request. An entry is null when its item resolved to no pool (unknown pool, unknown token, or a token with no pools on that chain). Otherwise it is a full market object, identical to the data of Get market details.

Stats windows

Windowed stats are rolling windows that end at the time of the last stats update. They do not align to calendar boundaries. No priceChange15minPercentage field exists. Every other combination of metric and window does. Field names are built as <metric><window><suffix>:

Errors

Validation runs on the whole body before any lookup. If any item is invalid, the whole request fails with 400 and no markets are returned. The message joins every problem as field: message (or just message for a root error), separated by ; . Wording of generic messages such as type and size errors comes from the validation library and may change; rely on field and code, not on the exact text.
A body that is not valid JSON is rejected with 400 before validation runs, so it has no per-item details. Check the HTTP status (or statusCode) rather than relying on a specific code or message in this case.