# Ironflow Liquidation Levels by Price Bucket

> Ironflow Liquidation Levels by Price Bucket is a paid API for AI agents from api.ironflow.sh, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Returns Hyperliquid perpetual liquidations bucketed by price level, showing count and total size per bucket per side (long/short), over a configurable time window up to 7 days within the past year.

## Facts

- Endpoint: GET https://api.ironflow.sh/x402/v1/analytics/liquidation-levels?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ironflow-liquidation-levels-by-price-bucket-0f73d0c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ajk9GFMNK4UlpblKfLOL4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ironflow-liquidation-levels-by-price-bucket-0f73d0c5
```

Example prompt: Show me the BTC liquidation clusters by price level for the last 24 hours using $100 buckets, so I can see where the most longs and shorts were flushed out on Hyperliquid.

## When to prefer this

Use this endpoint when you need price-level granularity on liquidations — specifically which price buckets accumulated the most forced closures and on which side. It is better than the liquidation totals endpoint when you need a heatmap or cluster view rather than aggregate USD totals, and better than the raw fills endpoint when you want pre-aggregated, bucketed data rather than individual liquidation events.

## Known failure modes

- INVALID_PARAMETER: unrecognized market symbol or invalid bucket_size value
- HISTORY_OUT_OF_RANGE: requested window extends beyond one year ago
- QUERY_WINDOW_EXCEEDED: requested time window exceeds 7 days
- RATE_LIMIT_EXCEEDED: too many calls in a short period
- NOT_FOUND: market exists but has no liquidation data in the window
- INTERNAL_ERROR: upstream data pipeline issue

## How this service works

Liquidated size on a Hyperliquid perp bucketed by price: at which price levels longs and shorts were liquidated, with count and total size per bucket and side, over a window of up to 7 days anywhere in the last year. Use it to map liquidation clusters and the crypto price levels where leverage was flushed, for BTC, ETH, SOL, HYPE or any other perp.

## Output

An array of rows, one per price bucket per side, each containing: the market symbol (e.g. BTC-PERP), the lower bound of the price bucket, the liquidation side (buy closes a short, sell closes a long), the number of liquidations in that bucket, and the total liquidated size in the base asset. Errors include machine-readable codes for invalid parameters, out-of-range history, exceeded query windows, rate limits, or internal errors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "market"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "End: Unix ms, ISO 8601, relative (-1h) or now (default)"
      },
      "from": {
       "type": "string",
       "description": "Start: Unix ms, ISO 8601, or relative (-7d, now-24h); up to 14 days back"
      },
      "limit": {
       "type": "string",
       "description": "Buckets to return, busiest first"
      },
      "market": {
       "type": "string",
       "description": "Market: BTC, ETH-PERP, HYPE/USDC, xyz:NVDA (HIP-3) or a Hyperliquid coin name"
      },
      "bucket_size": {
       "enum": [
        "auto",
        "1",
        "5",
        "10",
        "50",
        "100",
        "500",
        "1000",
        "5000"
       ],
       "type": "string",
       "description": "Price bucket width: auto (about 0.25% of price) or fixed (default 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "side": {
          "enum": [
           "buy",
           "sell"
          ],
          "type": "string",
          "description": "Liquidation order side: sell closes a long, buy closes a short"
         },
         "count": {
          "type": "integer",
          "description": "Liquidations in the bucket"
         },
         "market": {
          "type": "string",
          "description": "Market symbol, e.g. BTC-PERP, HYPE/USDC, xyz:NVDA-PERP"
         },
         "total_size": {
          "type": "string",
          "description": "Liquidated size in the base asset"
         },
         "price_bucket": {
          "type": "string",
          "description": "Bucket's lower price"
         }
        },
        "description": "A bucket"
       },
       "description": "One row per price bucke
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ironflow-liquidation-levels-by-price-bucket-0f73d0c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ironflow.sh](https://www.zero.xyz/host/api.ironflow.sh/llms.txt)
