---
title: "Get Liquidation Density"
method: GET
path: "/api/v1/backtesting/liquidation-density"
tags: ["Backtesting"]
---

# Get Liquidation Density

`GET /api/v1/backtesting/liquidation-density`

## Request

- Base URL: `https://cryptodataapi.com`
- URL: `https://cryptodataapi.com/api/v1/backtesting/liquidation-density`
- Auth: API key in header `X-API-Key`

Hyperliquid liquidation density near the mark, as a time series.

Per coin per point: ``mark``, and for bands of ±0.5 / 1 / 2 / 3 / 5% of
mark the USD of long positions liquidating BELOW the mark
(``long_below``) and shorts liquidating ABOVE it (``short_above``) —
plus the same split by ``trader_type`` (vault, market_maker, whale,
smart_money, high_leverage, other) and by ``leverage`` bucket
(3/5/10/20/25/40/50/100x). Derived from the archived ``liquidation_levels``
+ ``liquidation_map`` snapshots: ~2 KB a point instead of ~1 MB a snapshot.
History starts 2026-06-26 (the full-universe feed); ≤ 93 days per call.
CSV carries the all-account bands only. Pro Plus.

## Query parameters

- `coin` string, required: One HL coin name (BTC, HYPE, kPEPE) or a comma list (up to 25).
- `start` string, required: Start time (ISO 8601 or unix ms)
- `end` string: End time (ISO 8601 or unix ms, defaults to now). EXCLUSIVE — the range is [start, end).
- `interval` string: 5m (every archived snapshot) or 1h (the first snapshot of each hour).
- `splits` string: Breakdowns to include: any of trader_type, leverage (comma list), or `none` for the all-account bands only (~10x smaller).
- `bounds` string: Interval convention for `start`/`end`. `half-open` (default) is [start, end) — `end` is EXCLUSIVE, so consecutive windows tile without repeating a boundary row. `closed` is [start, end] — `end` INCLUSIVE, the pre-2026-08-08 behaviour; use it only to keep an existing integration byte-identical.
- `limit` integer
- `cursor` string, nullable: Opaque page cursor — the `next_cursor` of the previous response, verbatim. Resumes strictly after the last row served, keyed on the table's full primary key, so a page boundary inside a same-millisecond burst loses nothing (unlike `start = last.time + 1`). `start` / `end` still bound the window.
- `format` string: json or csv. CSV has no envelope: paging state travels in the `X-Has-More` / `X-Next-Cursor` response headers.

## Response `200`

Successful Response

- BacktestLiqDensityResponse
  - `grain` GrainDescriptor: What ONE ROW of a series is, stated on the payload so it cannot be mis-summed. ``kind``: ``event`` (one fill), ``bar`` (a closed bucket), ``rate_snapshot`` (the live rate sampled on a timer), ``rolling_window`` (a trailing total sampled on a timer), ``settled_payment`` (one settlement print). ``sum_ok`` — adding rows across time is meaningful. ``is_cumulative`` — a row already contains its predecessors' flow. ``settlements_per_day`` is set for funding series only.
    - `kind` string, required
    - `cadence` string, nullable
    - `is_cumulative` boolean
    - `sum_ok` boolean
    - `window` string, nullable
    - `settlements_per_day` integer, nullable
    - `note` string, required
  - `coverage` CoverageInfo: Local retention bounds (ms) for the queried scope. ``archive_hint`` is set when the window starts before ``local_first`` — those rows are not missing, they live in the daily Parquet archive.
    - `local_first` integer, nullable
    - `local_last` integer, nullable
    - `archive_hint` string, nullable
  - `next_cursor` string, nullable
  - `has_more` boolean
  - `coin` string, required
  - `interval` string, required
  - `bands_pct` number[], required
  - `count` integer, required
  - `data` BacktestLiqDensityPoint[], required
    - `time` integer, required
    - `coin` string, required
    - `snapshot_time` integer, required
    - `mark` number, nullable, required
    - `long_below` object, required
    - `short_above` object, required
    - `by_trader_type` object, nullable
    - `by_leverage` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cryptodataapi/apis/crypto-data-api.md) · [All operations](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/revisions/8628b754ca81?raw)
