> ## Documentation Index
> Fetch the complete documentation index at: https://sonar-cf3aeac7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch market details

> Get details for up to 100 markets in one request. Unresolved items come back as null instead of failing the batch.

The batch version of [Get market details](https://sonar-cf3aeac7.mintlify.site/api-reference/market/get-market-details.md). 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](https://sonar-cf3aeac7.mintlify.site/api-reference/market/get-market-details.md#how-the-pool-is-resolved) and [Base and quote orientation](https://sonar-cf3aeac7.mintlify.site/api-reference/market/get-market-details.md#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:

**address** `string` *required*

Pool address (`0x` + 40 hex), 32-byte pool id (`0x` + 64 hex), or token address (`0x` + 40 hex). Case-insensitive.

**chain** `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.

**baseToken** `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

**status** `"success"`

Always `success` for a 2xx response.

**data** `(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](https://sonar-cf3aeac7.mintlify.site/api-reference/market/get-market-details.md).

**MarketDetailsOutput**

**address** `string`

Pool address (20 bytes) or 32-byte pool id, lowercase.

**chainId** `string`

Chain in `evm:<id>` form, for example `evm:1`.

**blockchain** `string | null`

Chain display name, for example `Ethereum` or `Base`. `null` if the chain has no configuration.

**type** `string`

Pool type id, for example `uniswap-v2`, `uniswap-v3`, `uniswap-v4`, `pancakeswap-infinity-cl`, `clanker-v4` or `fourmeme`. See [Protocols and launchpads](https://sonar-cf3aeac7.mintlify.site/concepts/protocols-and-launchpads.md) and [`GET /protocols`](https://sonar-cf3aeac7.mintlify.site/api-reference/protocols/get-protocols) for the list per chain.

**exchange** `object | null`

Exchange that runs the pool. `null` when it can't be identified.

**properties**

**name** `string`

Exchange display name, for example `Uniswap`.

**logo** `string | null`

Logo URL. `null` when no logo is known.

**factory** `string | null`

Factory contract that created the pool.

**sourceFactory** `string | null`

Originating factory, for example a launchpad factory, when it differs from the DEX factory.

**poolFeePercentage** `number | null`

Swap fee as a **fraction**, not a percentage: `0.003` means a 0.3% fee and `0.0005` means 0.05%. `null` when the fee is unknown.

**deployer** `string | null`

Address that deployed the pool.

**createdAt** `string | null`

Pool creation time, ISO 8601 (UTC).

**bonded** `boolean`

`true` once a launchpad token has completed its bonding curve. `false` for ordinary pools.

**bondingPercentage** `number | null`

Bonding-curve progress on a 0 to 100 scale.

**bondingCurveAddress** `string | null`

Address of the pre-bonding curve pool, for launchpad tokens that graduated to this pool.

**baseToken** `string`

Address of the base token. Prices in this object are prices of the base token.

**quoteToken** `string`

Address of the quote token (the other token in the pool).

**tokenSymbol** `string | null`

Base token symbol.

**tokenName** `string | null`

Base token name.

**priceUSD** `number`

USD price of the base token as implied by this pool. Same value as `base.priceUSD`, or `0` when `base` is `null`.

**priceToken** `number`

Price of one base token in quote-token units. Same value as `base.priceToken`, or `0` when `base` is `null`.

**priceTokenString** `string | null`

Exact pool price of the base token in quote-token units, as a decimal string with **32 fractional digits** (for example `"3512.07000000000000000000000000000000"`). It is computed from the pool's on-chain price and both tokens' decimals. Use it when float precision matters. `null` when it can't be computed, for example when either token's details are unknown.

**liquidityUSD** `number`

Pool liquidity in USD. `0` when the pool has no stats yet.

**marketCapUSD** `number`

Market cap from the pool's stats. `0` when the pool has no stats.

**marketCapDilutedUSD** `number`

Fully diluted market cap from the pool's stats. `0` when the pool has no stats.

**latestTradeDate** `string | null`

Time of the pool's latest trade, ISO 8601 (UTC).

**priceChange\{W}Percentage** `number`

Price change of the pool's base token over window `W`, in percent (`2.5` means +2.5%). `W` is one of `1min`, `5min`, `1h`, `4h`, `6h`, `12h`, `24h`. There is no `15min` price change. `0` when there is no earlier price.

**volume\{W}USD, volumeBuy\{W}USD, volumeSell\{W}USD** `number`

Total, buy and sell volume in USD over window `W`. `W` is one of `1min`, `5min`, `15min`, `1h`, `4h`, `6h`, `12h`, `24h`.

**trades\{W}, buys\{W}, sells\{W}** `number`

Number of trades, buys and sells over window `W`.

**buyers\{W}, sellers\{W}, traders\{W}** `number`

Number of distinct buying, selling and trading wallets over window `W`.

**feesPaid\{W}USD** `number`

Gas fees paid by traders for the pool's trades over window `W`, in USD.

**description** `string | null`

Base token description.

**socials** `object | null`

Base token social links.

**properties**

**twitter** `string | null`

**website** `string | null`

**telegram** `string | null`

**dexscreenerListed** `boolean`

Whether the base token is listed on DEX Screener.

**extraData** `object | null`

Pool-type-specific state, such as `sqrtPriceX96` or `tickSpacing` for concentrated-liquidity pools. Large integers are sent as strings. The keys depend on the pool type and may change, so treat this object as opaque and don't rely on specific keys. `null` when there is nothing to report.

**base** `MarketTokenOutput | null`

Details of the base token. `null` if the token's details are not stored.

**MarketTokenOutput**

**address** `string`

Token address, lowercase.

**chainId** `string`

Chain in `evm:<id>` form.

**name** `string`

**symbol** `string`

**decimals** `number`

**logo** `string | null`

Logo URL.

**assetId** `number | null`

Id of the cross-chain asset this token belongs to. Pass it to [`GET /asset/ohlcv`](https://sonar-cf3aeac7.mintlify.site/api-reference/asset/get-asset-ohlcv) and [`GET /asset/history`](https://sonar-cf3aeac7.mintlify.site/api-reference/asset/get-asset-history).

**deployer** `string | null`

Address that deployed the token.

**source** `string | null`

Launchpad id when the token was launched on a known launchpad, otherwise `null`.

**sourceMetadata** `object | null`

Launchpad display data: `name` (string) and `logo` (string or `null`).

**priceUSD** `number`

USD price. For the base token: `1` if it is a known stablecoin; otherwise the pool price times the quote token's USD price when both are known; otherwise the token's global USD price. For the quote token: its global USD price.

**priceToken** `number`

Price of one unit of this token in units of the other token in the pool. Falls back to the ratio of the two USD prices when the pool price is unavailable, and to `0` when neither is known.

**totalSupply** `string | null`

Total supply as a raw integer string in base units. Divide by `10^decimals` for a display value.

**circulatingSupply** `string | null`

Circulating supply as a raw integer string in base units.

**marketCapUSD** `number`

Token-level market cap. `0` when unknown.

**marketCapDilutedUSD** `number`

Token-level fully diluted market cap. `0` when unknown.

**liquidityUSD** `number`

Token-level liquidity in USD, summed over the token's top pools and counting only the weaker side of each pool. `0` when unknown.

**liquidityMaxUSD** `number`

Like `liquidityUSD`, but counting the full liquidity (both sides) of each of those pools. `0` when unknown.

**approximateReserveToken** `number`

This token's reserve in the pool, adjusted for decimals.

**approximateReserveTokenRaw** `string`

This token's reserve in the pool as a raw integer string in base units.

**approximateReserveUSD** `number`

`approximateReserveToken × priceUSD`.

**quote** `MarketTokenOutput | null`

Details of the quote token, with the same fields as `base`. Here `priceUSD` is the quote token's global USD price and `priceToken` is the price of one quote token in base-token units. `null` if the token's details are not stored.

## Stats windows

Windowed stats are rolling windows that end at the time of the last stats update. They do not align to calendar boundaries.

| Window | Suffix in field names | Volume, trade and wallet counts, fees (`STATS_WINDOWS`) | Price change (`PRICE_CHANGE_WINDOWS`) |
| - | - | - | - |
| 1 minute | `1min` | Yes | Yes |
| 5 minutes | `5min` | Yes | Yes |
| 15 minutes | `15min` | Yes | **No** |
| 1 hour | `1h` | Yes | Yes |
| 4 hours | `4h` | Yes | Yes |
| 6 hours | `6h` | Yes | Yes |
| 12 hours | `12h` | Yes | Yes |
| 24 hours | `24h` | Yes | Yes |

No `priceChange15minPercentage` field exists. Every other combination of metric and window does.

Field names are built as `<metric><window><suffix>`:

| Pattern | Type | Meaning |
| - | - | - |
| `priceChange{window}Percentage` | number | Price change over the window, in percent (`6.42` means +6.42%). `0` when there is no earlier price to compare. |
| `volume{window}USD` | number | Traded volume in USD |
| `volumeBuy{window}USD` | number | Buy-side volume in USD |
| `volumeSell{window}USD` | number | Sell-side volume in USD |
| `trades{window}` | number | Number of trades |
| `buys{window}` | number | Number of buys |
| `sells{window}` | number | Number of sells |
| `buyers{window}` | number | Distinct buying wallets |
| `sellers{window}` | number | Distinct selling wallets |
| `traders{window}` | number | Distinct trading wallets |
| `feesPaid{window}USD` | number | Transaction (gas) fees paid by traders for these trades, in USD |

## 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.

| Status | `code` | When |
| - | - | - |
| 400 | `INVALID_ADDRESS` | Only address problems. `field` is indexed by position, for example `0.address` or `3.baseToken`. |
| 400 | `INVALID_PARAMETERS` | Any other validation problem, or a mix. Item errors have indexed fields such as `2.chain`. An empty array, more than 100 items, or a body that is not an array gives a root error with `field: ""`. |
| 500 | `INTERNAL_ERROR` | Unexpected server error. |

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.

> [!NOTE]
>
> 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.

```bash cURL theme={null}
curl -X POST "https://api.example.com/api/v1/market/details" \
  -H "Content-Type: application/json" \
  -d '[
    { "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", "chain": "1" },
    { "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933", "chain": "evm:1", "baseToken": "0x6982508145454ce325ddbe47a25d4ec3d2311933" },
    { "address": "0x0000000000000000000000000000000000000001", "chain": "1" }
  ]'
```

```javascript JavaScript theme={null}
const items = [
  { address: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", chain: "1" },
  // Token lookup: pass the token as baseToken so prices are for that token
  {
    address: "0x6982508145454ce325ddbe47a25d4ec3d2311933",
    chain: "evm:1",
    baseToken: "0x6982508145454ce325ddbe47a25d4ec3d2311933",
  },
  { address: "0x0000000000000000000000000000000000000001", chain: "1" },
];

const res = await fetch("https://api.example.com/api/v1/market/details", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify(items),
});
const body = await res.json();
if (body.status !== "success") throw new Error(`${body.code}: ${body.message}`);

body.data.forEach((market, i) => {
  if (market === null) console.log(`item ${i}: not found`);
  else console.log(`item ${i}: ${market.tokenSymbol} $${market.priceUSD} on ${market.type}`);
});
```

```json 200 theme={null}
{
  "status": "success",
  "data": [
    {
      "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
      "chainId": "evm:1",
      "blockchain": "Ethereum",
      "type": "uniswap-v3",
      "baseToken": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "quoteToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "tokenSymbol": "WETH",
      "priceUSD": 3512.0743198273113,
      "priceToken": 3512.0743198273113,
      "priceTokenString": "3512.07431982731125809166120385720914",
      "liquidityUSD": 126419093.79,
      "volume24hUSD": 180310500.2
      // ...every other MarketDetailsOutput field
    },
    {
      "address": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
      "chainId": "evm:1",
      "blockchain": "Ethereum",
      "type": "uniswap-v2",
      "baseToken": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
      "quoteToken": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "tokenSymbol": "PEPE",
      "priceUSD": 0.0000098421,
      "priceToken": 2.8023e-9,
      "priceTokenString": "0.00000000280233418765102938475610",
      "liquidityUSD": 41250000.12,
      "volume24hUSD": 12840000.55
      // ...every other MarketDetailsOutput field
    },
    null
  ]
}
```

```json 400 (empty array) theme={null}
{
  "status": "error",
  "statusCode": 400,
  "code": "INVALID_PARAMETERS",
  "message": "Too small: expected array to have >=1 items",
  "details": [
    { "field": "", "message": "Too small: expected array to have >=1 items" }
  ]
}
```

```json 400 (numeric chain) theme={null}
{
  "status": "error",
  "statusCode": 400,
  "code": "INVALID_PARAMETERS",
  "message": "1.chain: Invalid input: expected string, received number",
  "details": [
    { "field": "1.chain", "message": "Invalid input: expected string, received number" }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.