Tokens API

Token liquidity depth over time

How a TOKEN's pooled liquidity moved over a window, in USD — is it growing or draining? The trend under the point-in-time liquidity figure. Solana only.

GET/api/external/token-analysis/liquidity-history/{chain}/{mint}

Chains

  • Solana SOL

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/token-analysis/liquidity-history/SOL/<mint>?resolution=1m&from=<from>&to=<to>"
Parameters
ParameterDescription
resolution

query · string · required

Candle width: 1-minute, 4-hour or 1-day liquidity candles.1m4h1D
from

query · integer · required

Window start, Unix SECONDS. Inclusive.
to

query · integer · required

Window end, Unix SECONDS. Inclusive. At most 100 candles fit in one request — a wider window returns 400 naming the real ceiling for the resolution asked for, rather than a truncated series.
chain

path · string · required

Solana only; every other chain returns 400. No wired source keeps a token liquidity time series on any other chain.
mint

path · string · required

The token mint address.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of Token liquidity depth over time
FieldType
resolutionstring
pointsobject[]
points[].atnumber
points[].opennumber | null
points[].highnumber | null
points[].lownumber | null
points[].closenumber | null
points[].completeboolean
changeobject
change.fromAtnumber | null
change.fromLiquidityUsdnumber | null
change.toAtnumber | null
change.toLiquidityUsdnumber | null
change.changeUsdnumber | null
change.changePctnumber | null

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key