Skip to main content
GET
Liquidity History - Pair

Historical pair liquidity snapshots on Solana.

  • Returns point-in-time liquidity snapshots for a trading pair.
  • Use either unix_time or block_number as the cursor; they are mutually exclusive.
  • Use step for sampled points and skip_empty to control repeated snapshots.
  • The endpoint returns up to 100 records per request.
  • This endpoint consumes 5 CU per request.
  • When count is provided, batch CU is calculated as ceil(5 × count^0.5).
  • Track historical liquidity changes for a trading pair.
  • Build execution-quality, depth, and market-health dashboards.
  • Join pair liquidity history with price, trades, and OHLCV data.
  • Set x-chain=solana and pass the pair address.
  • Choose either a Unix timestamp or Solana slot as the cursor.
  • Use direction, step, and count to page or sample the history.
  • Use block_number when the consumer is indexed by Solana slots.
  • Use unix_time for time-series charts and external market-data joins.
  • Keep count and step aligned with the chart resolution to avoid redundant points.
  • Solana only.

Authorizations

X-API-KEY
string
header
required

API key for authentication

Headers

x-chain
enum<string>
default:solana

Solana network only.

Available options:
solana

Query Parameters

address
string
required

The address of a pair contract

unix_time
integer

Unix timestamp in seconds. Mutually exclusive with block_number. Defaults to the latest available data when neither unix_time nor block_number is provided.

Required range: 0 <= x <= 10000000000
block_number
integer

Solana slot (block number) used as the cursor. Mutually exclusive with unix_time. Pagination cursors use slots when this parameter is supplied.

Required range: 0 <= x <= 9007199254740991
step
integer

Optional sampling interval in slots for a block_number cursor or seconds for a unix_time cursor. When omitted, returns actual historical snapshots without regular sampling. With skip_empty=false, each sampling point uses the latest snapshot at or before it. With skip_empty=true, repeated snapshots are skipped.

Required range: 1 <= x <= 9007199254740991
skip_empty
boolean
default:false

For step sampling, false fills each requested point with the latest snapshot at or before it. True skips repeated snapshots using the existing skip/dedup behavior.

direction
enum<string>
default:back

Direction to query liquidity records from the anchor time. Use back for older records and forward for newer records.

Available options:
back,
forward
count
integer
default:1

Maximum number of historical points returned. Defaults to 1 and is capped at 100. Batch CU is ceil(5 × count^0.5).

Required range: 1 <= x <= 100

Response

JSON object containing historical liquidity snapshots of a pair

success
boolean
required

Whether the request completed successfully.

data
object
required

Historical liquidity snapshots for the requested trading pair.