TL;DR
- Resolve the token to its deepest pool
- Pull that pool’s liquidity as OHLC candles
- Align liquidity against token price to spot divergence
- Explain a collapse with security and supply data
All requests share the base URL https://public-api.birdeye.so, authenticate with the X-API-KEY header, and select the network with x-chain: solana.
The four stage pipeline
1
Resolve the token to its deepest pool
A token rarely lives in one pool. It trades across many, and most are too shallow to matter, so the first job is finding the one pool that actually holds the liquidity.Endpoint:
GET /defi/v2/marketsA token can list more than a thousand pools, so sorting by
liquidity with sort_type=desc is not optional. The source field names the venue behind each pool.2
Pull the pool's liquidity as OHLC candles
With the pool address in hand, watch its liquidity move. This returns liquidity as OHLC candles minute by minute, so a slow bleed and a one block rug both show up as a shape on a chart rather than a single number.Endpoint:
GET /defi/v3/liquidity/ohlc/pairOne call returns at most 100 candles. For a longer window, page with
next_cursor and prev_cursor, and stop when has_more is false.3
Align liquidity against token price
Liquidity falling alongside price is ordinary selling. Liquidity vanishing while price holds, or dropping far faster than price, is the shape of a pull. To see that, overlay price candles on the liquidity series from Step 2.Endpoint:
GET /defi/v3/ohlcv4
Explain a collapse with security and supply data
An alert tells you liquidity left. It does not tell you whether the token was a trap from the start or whether supply was inflated on the way out.Endpoint:
GET /defi/token_security, GET /defi/v3/token/mint-burn-txsRug Checker
The full authority, concentration, and behavior check set, with the exact field list per chain.
Watch your credit budget
Liquidity monitoring polls, and a tool watching many pools at once can run up calls fast. Endpoint:GET /utils/v1/credits
Before you ship
- Every call sends
x-chain: solanaand anX-API-KEY. addressis the token formarkets,ohlcv,token_security, andmint-burn-txs, and the pool forliquidity/ohlc/pair.- The liquidity series is plotted from
open_liquidity_usdthroughclose_liquidity_usd, not aliquidity_usdfield. - Liquidity and price candles are joined on
unix_time, since their field names differ. - Security and supply calls fire only on an alert, with credits monitored as pools are added.
FAQ
Why does the address parameter mean different things on different endpoints?
Why does the address parameter mean different things on different endpoints?
Liquidity belongs to a pool, while price, security, and supply belong to a token.
liquidity/ohlc/pair takes the pool address, while markets, ohlcv, token_security, and mint-burn-txs take the token mint. Carrying the wrong one between calls is the most common mistake in this pipeline.Which field holds the pool's liquidity value?
Which field holds the pool's liquidity value?
The liquidity OHLC candles expose
open_liquidity_usd, high_liquidity_usd, low_liquidity_usd, and close_liquidity_usd. There is no single liquidity_usd field.How do I tell a rug from normal selling?
How do I tell a rug from normal selling?
By the divergence between liquidity and price. Liquidity falling alongside price is ordinary selling, while liquidity vanishing as price holds, or dropping far faster than price, is the shape of a pull. The balance fields on each liquidity candle confirm whether tokens actually left the pool.

