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

# Get market details

> Get price, liquidity, windowed stats and token details for one pool. Accepts a pool address, a 32-byte pool id or a token address.

Returns one market (a liquidity pool) with its base/quote orientation, prices, pool-level stats over rolling windows, and details for both tokens.

To fetch up to 100 markets in one request, use [Batch market details](https://sonar-cf3aeac7.mintlify.site/api-reference/market/batch-market-details.md).

## How the pool is resolved

The `address` you pass is resolved in this order:

1. **Pool.** If `address` matches a pool on `chain` (a pool contract address, or a 32-byte pool id for pools identified by an id rather than a contract, such as Uniswap V4, PancakeSwap Infinity and Ekubo pools), that pool is returned.
2. **Token.** Otherwise `address` is treated as a token. Up to 25 of the token's pools are considered, and the one with the highest 24h volume is returned (the token's "best pool").
3. If neither matches, the response is `404 POOL_NOT_FOUND`.

## Base and quote orientation

Every market has a `baseToken` and a `quoteToken`. Prices such as `priceUSD`, `priceToken` and `priceTokenString` are prices **of the base token**, and `tokenSymbol`, `tokenName`, `description` and `socials` describe the base token.

The base side is chosen like this:

1. If you pass `baseToken` and it is one of the pool's two tokens, it becomes the base.
2. Otherwise the pool's default base is used. Typically a stablecoin or the chain's native/wrapped coin is the quote side, so in a WETH/USDC pool WETH is the base.
3. If the pool has no default base, the pool's first token (`token0`) is the base.

A `baseToken` that is not in the pool is ignored, not rejected.

> [!WARNING]
>
> When you pass a **token** address, the resolved pool keeps its default orientation, so the base is not guaranteed to be the token you asked for. For example, passing a stablecoin's address usually returns a pool where the stablecoin is the quote. To get prices for the token you asked about, pass the same address as `baseToken`:
>
> `/market/details?address=0xa0b8…eb48&chain=1&baseToken=0xa0b8…eb48`

## Query parameters

**address** `string` *required*

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

**chain** `string` *required*

Chain id, as a number (`1`) or with the `evm:` prefix (`evm:1`). Chain names such as `ethereum` are rejected. See [Chains and identifiers](https://sonar-cf3aeac7.mintlify.site/concepts/chains-and-identifiers.md).

**baseToken** `string`

Token address (`0x` + 40 hex) to use as the base side. Only applied if it is one of the pool's two tokens; otherwise ignored.

## Response

**status** `"success"`

Always `success` for a 2xx response.

**data** `MarketDetailsOutput`

The market.

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

> [!NOTE]
>
> Unlike [token details](https://sonar-cf3aeac7.mintlify.site/api-reference/token/get-token.md), a market has **no top-level `liquidityMaxUSD`**. Token-level `liquidityUSD` and `liquidityMaxUSD` are available inside `base` and `quote`. The top-level `liquidityUSD`, `marketCapUSD`, `marketCapDilutedUSD` and all windowed stats are measured for **this pool** only.

> [!NOTE]
>
> `poolFeePercentage` is a fraction (`0.0005` = 0.05%), while `priceChange{W}Percentage` and `bondingPercentage` are on a 0 to 100 scale.

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

| Status | `code` | When |
| - | - | - |
| 400 | `INVALID_ADDRESS` | `address` or `baseToken` is malformed, and that is the only problem. Messages: `address: must be a valid token address or pool id`, `baseToken: must be a valid token or wallet address`. |
| 400 | `INVALID_PARAMETERS` | Any other validation failure, for example a missing or malformed `chain` (`chain: must be a chain id like 1 or evm:1`), or several problems at once. |
| 404 | `POOL_NOT_FOUND` | No pool matches `address`, and no pool contains it as a token. Message: `Pool not found`. A well-formed chain id that ChainQuery doesn't index also gives this 404. |
| 500 | `INTERNAL_ERROR` | Unexpected server error. |

See [Responses and errors](https://sonar-cf3aeac7.mintlify.site/concepts/responses-and-errors.md) for the error envelope.

```bash cURL theme={null}
curl "https://api.example.com/api/v1/market/details?address=0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640&chain=1"
```

```javascript JavaScript theme={null}
const params = new URLSearchParams({
  address: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
  chain: "1",
});

const res = await fetch(`https://api.example.com/api/v1/market/details?${params}`);
const body = await res.json();
if (body.status !== "success") throw new Error(`${body.code}: ${body.message}`);

const market = body.data;
console.log(`${market.tokenSymbol}: $${market.priceUSD}`, market.priceTokenString);
```

```json 200 theme={null}
{
  "status": "success",
  "data": {
    "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
    "chainId": "evm:1",
    "blockchain": "Ethereum",
    "type": "uniswap-v3",
    "exchange": { "name": "Uniswap", "logo": "https://cdn.example.com/exchanges/uniswap.png" },
    "factory": "0x1f98431c8ad98523631ae4a59f267346ea31f984",
    "sourceFactory": null,
    "poolFeePercentage": 0.0005,
    "deployer": null,
    "createdAt": "2021-05-05T21:42:11.000Z",
    "bonded": false,
    "bondingPercentage": null,
    "bondingCurveAddress": null,
    "baseToken": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "quoteToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "tokenSymbol": "WETH",
    "tokenName": "Wrapped Ether",
    "priceUSD": 3512.0743198273113,
    "priceToken": 3512.0743198273113,
    "priceTokenString": "3512.07431982731125809166120385720914",
    "liquidityUSD": 126419093.79,
    "marketCapUSD": 8650000000,
    "marketCapDilutedUSD": 8650000000,
    "latestTradeDate": "2026-12-03T11:55:00.000Z",
    "priceChange1minPercentage": 0.01,
    "priceChange5minPercentage": 0.05,
    "priceChange1hPercentage": -0.42,
    "priceChange4hPercentage": 0.91,
    "priceChange6hPercentage": 1.12,
    "priceChange12hPercentage": 1.63,
    "priceChange24hPercentage": 2.31,
    "volume1minUSD": 120500.2, "volume5minUSD": 801240.9, "volume15minUSD": 2104410.3, "volume1hUSD": 9020050.1,
    "volume4hUSD": 35210400.6, "volume6hUSD": 50120900.4, "volume12hUSD": 90450200.8, "volume24hUSD": 180310500.2,
    "volumeBuy1minUSD": 60200.1, "volumeBuy5minUSD": 400100.4, "volumeBuy15minUSD": 1050200.1, "volumeBuy1hUSD": 4510020.0,
    "volumeBuy4hUSD": 17600100.3, "volumeBuy6hUSD": 25060400.2, "volumeBuy12hUSD": 45220100.4, "volumeBuy24hUSD": 90150200.1,
    "volumeSell1minUSD": 60300.1, "volumeSell5minUSD": 401140.5, "volumeSell15minUSD": 1054210.2, "volumeSell1hUSD": 4510030.1,
    "volumeSell4hUSD": 17610300.3, "volumeSell6hUSD": 25060500.2, "volumeSell12hUSD": 45230100.4, "volumeSell24hUSD": 90160300.1,
    "trades1min": 14, "trades5min": 71, "trades15min": 205, "trades1h": 830, "trades4h": 3310, "trades6h": 4870, "trades12h": 9420, "trades24h": 18850,
    "buys1min": 7, "buys5min": 35, "buys15min": 101, "buys1h": 412, "buys4h": 1650, "buys6h": 2431, "buys12h": 4700, "buys24h": 9405,
    "sells1min": 7, "sells5min": 36, "sells15min": 104, "sells1h": 418, "sells4h": 1660, "sells6h": 2439, "sells12h": 4720, "sells24h": 9445,
    "buyers1min": 5, "buyers5min": 22, "buyers15min": 61, "buyers1h": 190, "buyers4h": 640, "buyers6h": 880, "buyers12h": 1510, "buyers24h": 2730,
    "sellers1min": 4, "sellers5min": 20, "sellers15min": 58, "sellers1h": 185, "sellers4h": 612, "sellers6h": 851, "sellers12h": 1490, "sellers24h": 2690,
    "traders1min": 8, "traders5min": 39, "traders15min": 110, "traders1h": 352, "traders4h": 1180, "traders6h": 1620, "traders12h": 2810, "traders24h": 5070,
    "feesPaid1minUSD": 60.25, "feesPaid5minUSD": 400.62, "feesPaid15minUSD": 1052.21, "feesPaid1hUSD": 4510.03,
    "feesPaid4hUSD": 17605.2, "feesPaid6hUSD": 25060.45, "feesPaid12hUSD": 45225.1, "feesPaid24hUSD": 90155.25,
    "description": null,
    "socials": { "twitter": null, "website": "https://weth.io", "telegram": null },
    "dexscreenerListed": true,
    "extraData": {
      "sqrtPriceX96": "1336896341981907905326940944334848",
      "currentTick": 194680,
      "activeLiquidity": "8723410298374123908",
      "tickSpacing": 10
    },
    "base": {
      "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "chainId": "evm:1",
      "name": "Wrapped Ether",
      "symbol": "WETH",
      "decimals": 18,
      "logo": "https://cdn.example.com/tokens/weth.png",
      "assetId": 2534,
      "deployer": null,
      "source": null,
      "sourceMetadata": null,
      "priceUSD": 3512.0743198273113,
      "priceToken": 3512.0743198273113,
      "totalSupply": "2462880000000000000000000",
      "circulatingSupply": "2462880000000000000000000",
      "marketCapUSD": 8650000000,
      "marketCapDilutedUSD": 8650000000,
      "liquidityUSD": 412000000,
      "liquidityMaxUSD": 905000000,
      "approximateReserveToken": 18000.5,
      "approximateReserveTokenRaw": "18000500000000000000000",
      "approximateReserveUSD": 63219093.79
    },
    "quote": {
      "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "chainId": "evm:1",
      "name": "USD Coin",
      "symbol": "USDC",
      "decimals": 6,
      "logo": "https://cdn.example.com/tokens/usdc.png",
      "assetId": 1,
      "deployer": null,
      "source": null,
      "sourceMetadata": null,
      "priceUSD": 1,
      "priceToken": 0.00028473201559389835,
      "totalSupply": "41200000000000000",
      "circulatingSupply": "41200000000000000",
      "marketCapUSD": 41200000000,
      "marketCapDilutedUSD": 41200000000,
      "liquidityUSD": 610000000,
      "liquidityMaxUSD": 1150000000,
      "approximateReserveToken": 63200000,
      "approximateReserveTokenRaw": "63200000000000",
      "approximateReserveUSD": 63200000
    }
  }
}
```

```json 404 theme={null}
{
  "status": "error",
  "statusCode": 404,
  "code": "POOL_NOT_FOUND",
  "message": "Pool not found"
}
```

```json 400 theme={null}
{
  "status": "error",
  "statusCode": 400,
  "code": "INVALID_ADDRESS",
  "message": "address: must be a valid token address or pool id",
  "details": [
    { "field": "address", "message": "must be a valid token address or pool id" }
  ]
}
```


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