---
title: "Liquidity OHLC - Pair"
method: GET
path: "/defi/v3/liquidity/ohlc/pair"
tags: ["Price & OHLCV"]
---

# Liquidity OHLC - Pair

`GET /defi/v3/liquidity/ohlc/pair`

A historical liquidity time-series API for Solana pools, converting raw on-chain pool states into OHLC data for TVL, token balances, and USD-denominated liquidity. It enables TradingView-style liquidity charting, deep liquidity analytics, pool-level liquidity provider tracking, abnormal liquidity event detection, manipulation and rug-risk surveillance, and quantitative backtesting of liquidity-driven strategies. Unlike traditional APIs limited to current snapshots or price/volume data, this dataset reveals the full historical evolution of pool liquidity structure over time, unlocking a new analytical layer for DeFi market intelligence and risk modeling. Maximum 100 records.

## Query parameters

- `address` string, required
- `time` integer
- `direction` 'back' | 'forward'
- `count` integer

## Headers

- `x-chain` 'solana'

## Response `200`

JSON object containing liquidity OHLC data of a pair

- DefiLiquidityOhlcPairResponse
  - `success` boolean, required
  - `data` object, required
    - `items` object[], required
      - `pair_address` string, required
      - `base_mint` string, required
      - `quote_mint` string, required
      - `timestamp` string, date-time, required
      - `unix_time` integer, required
      - `open_liquidity_usd` number, required
      - `high_liquidity_usd` number, required
      - `low_liquidity_usd` number, required
      - `close_liquidity_usd` number, required
      - `open_base_balance` number, required
      - `high_base_balance` number, required
      - `low_base_balance` number, required
      - `close_base_balance` number, required
      - `open_quote_balance` number, required
      - `high_quote_balance` number, required
      - `low_quote_balance` number, required
      - `close_quote_balance` number, required
      - `open_base_amount_ui` number
      - `high_base_amount_ui` number
      - `low_base_amount_ui` number
      - `close_base_amount_ui` number
      - `open_quote_amount_ui` number
      - `high_quote_amount_ui` number
      - `low_quote_amount_ui` number
      - `close_quote_amount_ui` number
      - `base_open_price` number, required
      - `base_high_price` number, required
      - `base_low_price` number, required
      - `base_close_price` number, required
      - `quote_open_price` number, required
      - `quote_high_price` number, required
      - `quote_low_price` number, required
      - `quote_close_price` number, required
    - `direction` 'next' | 'prev', required — Internal cursor direction returned for the current result window.
    - `limit` integer, required — Number of candles requested from the upstream liquidity data service.
    - `next_cursor` integer, nullable, required — Unix timestamp cursor for the next page of newer candles.
    - `prev_cursor` integer, nullable, required — Unix timestamp cursor for the previous page of older candles.
    - `has_more` boolean, required — Whether another page is available in the returned direction.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized. API key is missing or invalid
- `403` — Forbidden. Request is blacklisted or not whitelisted
- `429` — Too Many Requests. Rate limit reached
- `500` — Internal Server Error

---

[API](https://skmtc.net/birdeye/apis/birdeye-data-api.md) · [All operations](https://skmtc.net/birdeye/apis/birdeye-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/birdeye/birdeye-data-api/revisions/fcaba926a089/schema)
