Markets
Batch market details
Get details for up to 100 markets in one request. Unresolved items come back as null instead of failing the batch.
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:
The same pool can appear more than once; each occurrence gets its own result.
- Pool resolution:
addressis 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:
baseTokensets the base side if it is one of the pool’s tokens. Otherwise the pool’s default base is used, falling back totoken0. When you look up a token address, pass the same address asbaseTokento make sure prices are for that token.
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
SendContent-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:
Pool address (
0x + 40 hex), 32-byte pool id (0x + 64 hex), or token address (0x + 40 hex). Case-insensitive.Chain id as a JSON string:
"1" or "evm:1". A JSON number such as 1 is rejected, and so are chain names.Token address (
0x + 40 hex) to use as the base side. Ignored if it is not one of the pool’s tokens.Response
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 with400 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.