> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt
> Use this file to discover all available pages before exploring further.

# DLMM Data API Overview

> Learn how the DLMM Data API exposes indexed pools, portfolios, positions, stats, limit orders, wallets, and query filters.

<Tip>
  **All DLMM APIs have a rate limit of 30 requests per second (30 RPS).** Explore the production spec at the [Prod Swagger UI](https://dlmm.datapi.meteora.ag/swagger-ui/) or the development spec at the [Dev Swagger UI](https://dlmm.dev.metdev.io/swagger-ui/).
</Tip>

## Base URLs

| Environment | Base URL                         | Swagger UI                                         |
| ----------- | -------------------------------- | -------------------------------------------------- |
| Production  | `https://dlmm.datapi.meteora.ag` | [Open](https://dlmm.datapi.meteora.ag/swagger-ui/) |
| Development | `https://dlmm.dev.metdev.io`     | [Open](https://dlmm.dev.metdev.io/swagger-ui/)     |

The checked-in OpenAPI file uses the same endpoint schema for both environments. Use the server dropdown in the API playground to switch between production and development.

## Pools

<CardGroup>
  <Card title="Pools" icon="file-code" iconType="solid" href="/api-reference/dlmm/pools/pools">
    Returns a paginated list of pools using `GET` `/pools`
  </Card>

  <Card title="Groups" icon="file-code" iconType="solid" href="/api-reference/dlmm/pools/groups">
    Returns a paginated list of pool groups using `GET` `/pools/groups`
  </Card>

  <Card title="Group" icon="file-code" iconType="solid" href="/api-reference/dlmm/pools/group">
    Returns pools that belong to a specific pool group using `GET` `/pools/groups/{lexical_order_mints}`
  </Card>

  <Card title="Pool" icon="file-code" iconType="solid" href="/api-reference/dlmm/pools/pool">
    Returns metadata and current state for a single pool using `GET` `/pools/{address}`
  </Card>

  <Card title="OHLCV" icon="file-code" iconType="solid" href="/api-reference/dlmm/pools/ohlcv">
    Returns OHLCV candles for a single pool over a time range using `GET` `/pools/{address}/ohlcv`
  </Card>

  <Card title="Historical Volume" icon="file-code" iconType="solid" href="/api-reference/dlmm/pools/historical-volume">
    Returns historical volume for a pool aggregated into time buckets using `GET` `/pools/{address}/volume/history`
  </Card>
</CardGroup>

## Portfolio

<CardGroup>
  <Card title="Closed Portfolio" icon="file-code" iconType="solid" href="/api-reference/dlmm/portfolio/get-user-portfolio-with-all-pools-containing-closed-positions">
    Returns user portfolio data with pools containing closed positions using `GET` `/portfolio`
  </Card>

  <Card title="Open Portfolio" icon="file-code" iconType="solid" href="/api-reference/dlmm/portfolio/get-user-portfolio-with-all-pools-containing-open-positions">
    Returns user portfolio data with pools containing open positions using `GET` `/portfolio/open`
  </Card>

  <Card title="Portfolio Total" icon="file-code" iconType="solid" href="/api-reference/dlmm/portfolio/get-total-portfolio-pnl-across-all-pools">
    Returns total portfolio PnL across pools using `GET` `/portfolio/total`
  </Card>
</CardGroup>

## Positions

<CardGroup>
  <Card title="Historical Events" icon="file-code" iconType="solid" href="/api-reference/dlmm/positions/get-the-historical-events-for-a-position">
    Returns add, remove, claim fee, and claim reward events using `GET` `/positions/{address}/historical`
  </Card>

  <Card title="Position PnL" icon="file-code" iconType="solid" href="/api-reference/dlmm/positions/get-position-pnl-data-open-and-closed-positions-with-on-the-fly-calculation">
    Returns position PnL for open and closed positions using `GET` `/positions/{pool_address}/pnl`
  </Card>
</CardGroup>

## Stats

<CardGroup>
  <Card title="Protocol Overview" icon="file-code" iconType="solid" href="/api-reference/dlmm/stats/protocol-overview">
    Returns aggregated protocol-level metrics across all pools using `GET` `/stats/protocol_metrics`
  </Card>
</CardGroup>

## Limit Orders

<CardGroup>
  <Card title="Open Limit Order Pools" icon="file-code" iconType="solid" href="/api-reference/dlmm/limit-orders/get-open-limit-order-pools">
    Returns open limit order pools for a wallet using `GET` `/wallets/{wallet}/limit_orders/open/pools`
  </Card>

  <Card title="Open Limit Orders For Pool" icon="file-code" iconType="solid" href="/api-reference/dlmm/limit-orders/get-open-limit-orders-for-pool">
    Returns open limit orders for a wallet and pool using `GET` `/wallets/{wallet}/limit_orders/open/pools/{pool_address}`
  </Card>

  <Card title="Closed Limit Order Pools" icon="file-code" iconType="solid" href="/api-reference/dlmm/limit-orders/get-closed-limit-order-pools">
    Returns closed limit order pools for a wallet using `GET` `/wallets/{wallet}/limit_orders/closed/pools`
  </Card>

  <Card title="Closed Limit Orders For Pool" icon="file-code" iconType="solid" href="/api-reference/dlmm/limit-orders/get-closed-limit-orders-for-pool">
    Returns closed limit orders for a wallet and pool using `GET` `/wallets/{wallet}/limit_orders/closed/pools/{pool_address}`
  </Card>

  <Card title="Limit Order Summary" icon="file-code" iconType="solid" href="/api-reference/dlmm/limit-orders/get-limit-order-summary">
    Returns wallet limit order summary using `GET` `/wallets/{wallet}/limit_orders/summary`
  </Card>

  <Card title="Bonus Claimed For Pool" icon="file-code" iconType="solid" href="/api-reference/dlmm/limit-orders/get-bonus-claimed-for-pool">
    Returns bonus claimed data using `GET` `/wallets/{wallet}/limit_orders/pools/{pool_address}/bonus_claimed`
  </Card>
</CardGroup>

## Wallets

<CardGroup>
  <Card title="Wallet Pool Total Claims" icon="file-code" iconType="solid" href="/api-reference/dlmm/wallets/get-wallet-pool-total-claims">
    Returns accumulated fee/reward claims for a wallet and pool using `GET` `/wallets/{wallet}/pools/{pool_address}/total_claims`
  </Card>
</CardGroup>

## Query Syntax

List endpoints use common query parameters:

| Parameter   | Use                                                                          |
| ----------- | ---------------------------------------------------------------------------- |
| `page`      | 1-based page number.                                                         |
| `page_size` | Page size. Pool lists support up to `1000`; group lists support up to `100`. |
| `query`     | Search by name, tokens, or address.                                          |
| `sort_by`   | Format: `<field>:<direction>` or `<metric>_<window>:<direction>`.            |
| `filter_by` | Format: `<field><op><value> [&& <field><op><value> ...]`.                    |

Supported time windows include `5m`, `30m`, `1h`, `2h`, `4h`, `12h`, and `24h`.
