> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ironflow.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Pain Map: Hyperliquid stop losses and liquidations by price

> GET /v1/signals/pain-map adds every untriggered stop-loss and take-profit order to the Hyperliquid liquidation map: forced sells below the price, forced buys above, and the largest clusters within 3%.

The [liquidation map](https://docs.ironflow.sh/api-reference/analytics/liquidation-map.md) shows where positions are force-closed. The Pain Map puts every untriggered stop-loss and take-profit order from the same node snapshot beside it, on the same price grid. Below the price, long liquidations and sell stops are the forced selling; above it, short liquidations and buy stops are the forced buying. Take profits on the other side show what absorbs it. Clusters where one wallet holds most of the flow are flagged.

Orders that fire leave the map within seconds (a fill carries their order id); new orders appear with the next snapshot, about every 12 minutes. Pro reads it in real time; every other plan reads the map as it stood 15 minutes ago. On the site it is the Pain Map view of each [liquidation map](https://ironflow.sh/liquidations/map).

Market data, not financial advice.


## OpenAPI

````yaml GET /v1/signals/pain-map
openapi: 3.1.0
info:
  title: Ironflow API
  version: 1.0.0
  description: >
    Hyperliquid market data from Ironflow's own nodes: tick-level fills and

    trades, candles, funding rates, liquidations, mark prices, open interest,

    markets and wallet analytics over REST, live Server-Sent Events streams and

    read-only SQL. One schema across native HL perps, HIP-3 builder markets,

    HIP-4 outcome contracts and HL spot.


    The same data is a hosted MCP server for AI agents at

    `https://mcp.ironflow.sh/mcp`, and agents with a USDC wallet on Base can pay

    per call with x402, no key: the data GET endpoints are also served at

    `/x402/v1/...` (discovery: `https://api.ironflow.sh/openapi.json` and

    `https://api.ironflow.sh/.well-known/x402`).


    **Base URL:** `https://api.ironflow.sh`


    **Authentication:** Read endpoints work without a key (keyless access) or

    with a Bearer token in the `Authorization` header. Writes always need a key.

    ```

    Authorization: Bearer if_your_api_key

    ```

    Get a free key at https://ironflow.sh/key.


    **Access levels:**


    | Access | Requests per minute | Credits | History | Max range per request |

    |---|---|---|---|---|

    | No key | 30 per IP | 100 a day per IP (100 per app across its IPs, then
    the app needs a key) | 24 hours | 1 hour |

    | Free key | 60 | 1,000 a day, 3,000 a month | 14 days | 6 hours |

    | Explorer | 100 | 25,000 a day | 90 days (full on liquidations, funding,
    open interest, mark and oracle prices) | 24 hours |

    | Builder | 1,000 | 250,000 a day | 1 year (full on liquidations, funding,
    open interest, mark and oracle prices) | 7 days |

    | Enterprise | 10,000 | no cap | everything stored | unlimited |


    No key, free keys, Explorer and calls paid with x402 are for personal and

    non-commercial use; Builder, Pro and Enterprise include commercial use
    (Terms 15.2,

    https://ironflow.sh/terms).


    **Credits:** every call costs credits by what it does. A read (trades,

    fills, liquidations, candles, funding, open interest, prices, markets) costs

    1, analytics (the liquidation map, summary and heatmap, positions at a past

    time, wallet analytics, top traders, open interest changes, the hourly
    market

    panel) 5, SQL (`/v1/query`, also as `/v1/run_query` and `/v1/sql`, and the

    export) 10, and a live stream 1 to open and 1 a minute while it is open.

    Status, getting a key, plans and payment and the SQL schema cost nothing,
    and

    so does a call paid with x402. Any other endpoint costs 1. The full table:

    https://docs.ironflow.sh/concepts/rate-limits#credits


    Without a market filter, high-volume endpoints allow at most 4 hours per
    request.

    `/v1/trades` filtered to one perp or spot market allows 24 hours per request

    without a key and on a free key.

    Each caller can also read a set number of rows per hour: 2 billion without a
    key,

    10 billion on a free key, 100 billion on Explorer, 500 billion on Builder,
    none set

    on Enterprise. REST and SQL count separately. Over it, REST answers 429

    `READ_BUDGET_EXCEEDED` until the next hour.

    A header that is present but malformed returns 401; keyless access applies
    only

    when no `Authorization` header is sent. The keyless 100 credits a day are a

    rolling 24 hours per IP: past them, `KEYLESS_DAILY_LIMIT` (429, or 402 with
    x402

    payment terms) carries a `Retry-After` of the seconds until the next call
    fits,

    and its `upgrade` object has `resets_at` and,

    for a stream open (a stream open all day needs about 1,460 credits a day),

    Explorer next to the free key.

    An app that names itself in its `User-Agent` (not an HTTP library, a browser

    or curl) also shares 300 keyless credits per rolling 24 hours across all its
    IPs,

    with the same error past them; a free key lifts both.

    Through the hosted MCP server, each claude.ai conversation gets 30 keyless

    credits per rolling 24 hours of its own instead of the per-IP ones, up to
    3,000

    for all claude.ai conversations together.

    A key's credits count per account across all its keys over the UTC day, and
    on

    a free key also over the UTC month (free keys from one address share one
    free

    quota). Keyed responses carry `X-Credits-Cost` (this call),
    `X-Credits-Daily-Limit`,

    `X-Credits-Daily-Remaining` and `X-Credits-Daily-Reset` (the next 00:00 UTC
    in Unix

    seconds), on a free key also `X-Credits-Monthly-Limit`,
    `X-Credits-Monthly-Remaining`

    and `X-Credits-Monthly-Reset` (the 1st at 00:00 UTC);
    `X-RateLimit-Daily-Limit`,

    `X-RateLimit-Daily-Remaining` and `X-RateLimit-Daily-Reset` repeat the daily
    values.

    List answers and SQL results repeat them in a `credits` object. From 80% a
    notice

    says so. A call that does not fit in what is left gets `429
    DAILY_QUOTA_EXCEEDED`

    (back at 00:00 UTC), or on a free key past the month `429
    MONTHLY_QUOTA_EXCEEDED`

    (back on the 1st at 00:00 UTC), with an `upgrade` object: Explorer for a
    free key,

    Builder for Explorer, Pro for Builder, and `resets_at`. On the Liquidations
    plan (no

    longer sold; accounts that bought it keep it until it ends) the live
    liquidation

    stream costs 1 credit to open and nothing a minute, and the liquidation
    endpoints

    read their full history. A free key whose account never had a trial gets

    `upgrade.trial` first: 7 days of Explorer with the same key

    (`POST /v1/billing/trial`); a key on a running trial is pointed at keeping

    Explorer after it. Their `Retry-After` starts at 60 seconds and doubles with

    each refusal in a row, up to the reset, so a key that is upgraded resumes
    within

    minutes; after 100 refusals in an hour it is the whole wait. Opening a
    stream past

    10 opens a minute from one IP gets `429 STREAM_OPEN_LIMIT` before any
    credits are

    charged. A stream path whose opens from one IP were refused 20 times in a
    row, for

    any reason, is paused for 15 minutes (doubling up to an hour while the
    refusals go

    on): each open is answered `429 STREAM_OPEN_LIMIT` with the rest of the
    pause as

    `Retry-After`, after a hold of up to 15 seconds. A served open ends the run.
    Calls

    paid with x402 cost no credits and keep working.


    **Data availability:** fills and trades start on 25 May 2025; other

    datasets start later (funding 2025-09-27, open interest and mark prices

    2026-04-29). Bulk history is free to download from

    https://huggingface.co/ironflow.


    **Timestamps:** All timestamps are Unix milliseconds (int64).


    **Pagination:** Paginated endpoints return a `cursor` in
    `pagination.next_cursor`.

    Pass it as the `cursor` query parameter to fetch the next page.

    When `pagination.has_more` is `false`, you have reached the last page.


    **Notices:** a successful JSON object may start with `notice`, the

    `X-Ironflow-Notice` header in the body: what was served when it differs from

    what was asked (a keyless sample, a shortened history, a guessed path) and

    how to get the rest, and on a free key that may start the 7-day Explorer

    trial, once a UTC day, the call that starts it.


    **Guessed paths:** a few paths callers guess are answered by the endpoint

    they mean, with a `notice` and the `X-Ironflow-Canonical` header naming it:

    `/v1/liquidations/aggregate`, `/v1/summary/liquidations` and similar by

    `/v1/liquidations/summary`, `/v1/liquidations/buckets` and `heatmap` by

    `/v1/analytics/liquidation-levels`, `/v1/liquidations/map/BTC-PERP` and

    `/v1/liquidation-map/BTC-PERP` by `/v1/liquidations/map?market=BTC-PERP`,
    and

    `/v1/trades/BTC-PERP` by `/v1/trades?market=BTC-PERP`. A path with trailing
    `.`, `,`, `;` or

    `)` (`/v1/query.`, copied from a sentence) is answered by the endpoint
    without

    them, with the same method, query and body. Any other path with no endpoint

    answers `404 NOT_FOUND` naming up to three endpoints closest to it, also as

    `nearest_routes`. OpenAI-style paths (`/v1/models`,

    `/v1/chat/completions`) answer 404: this is not an LLM API, and agents use
    the

    MCP server above.
  contact:
    name: Ironflow Support
    url: https://ironflow.sh
servers:
  - url: https://api.ironflow.sh
    description: Production
security:
  - bearerAuth: []
  - {}
tags:
  - name: Hyperliquid RPC
    description: Your API key as a Hyperliquid /info URL, on your plan's limits.
  - name: Market Data
    description: Historical tick-level market data stored in ClickHouse.
  - name: Analytics
    description: >-
      Aggregated analytics. Net flows, funding stats and the liquidation map
      markets work without a key; liquidation levels, the liquidation map and
      the vault leaderboard return a sample without one; order flow needs a key
      (a free key works).
  - name: Cohorts
    description: Predefined and custom address groups for filtering market data.
  - name: Signals
    description: >-
      Edge signals: Liquidation Pressure and the Opening Bell pre-open preview.
      Real time on Pro, 15 minutes late on every other plan; the ledger of every
      call is public.
  - name: Alerts
    description: >-
      Liquidation alerts (and, on Pro, edge signal alerts) that Ironflow posts
      to your webhook, Discord channel, Slack channel or Telegram chat.
  - name: Query
    description: >-
      Read-only ClickHouse SQL over curated Hyperliquid tables (hl.*), limited
      by tier.
  - name: Billing
    description: >-
      Paid plans, paid in USDC on Base or Hyperliquid, or with x402 on Base. No
      card, no account page.
  - name: System
    description: Health checks and metadata endpoints.
  - name: TradingApp
    description: >-
      The trading terminal's own endpoints (terminal.ironflow.sh),
      wallet-session auth. Not part of the public data API; left out of the docs
      copy.
paths:
  /v1/signals/pain-map:
    get:
      tags:
        - Signals
      summary: Pain Map, liquidations plus stop and take-profit orders by price
      description: |
        The liquidation map with every untriggered stop-loss and
        take-profit order from our node's state snapshot beside it: the
        orders that turn into market orders when price gets there. Below
        mark, forced sells are long liquidations plus sell stops, and buy
        take profits absorb them; above mark, forced buys are short
        liquidations plus buy stops, against sell take profits.

        With `market`: that market's price levels on the liquidation map's
        0.25%-of-mark grid within 20% of mark, plus the totals and clusters
        below. Without it: every market's totals within 3% of mark
        (`within_3pct`, with `forced_flow_usd`, the forced sells plus forced
        buys) and its largest clusters (up to 3 levels each side), largest
        forced flow first. A cluster's `top_wallet_share` is the share of
        its forced flow from one wallet; `one_wallet` is true from 50%.

        Order notional is size times trigger price. Reduce-only orders, and
        orders that close the whole position, are capped at the wallet's
        position, nearest first. An order leaves the map when a fill
        carries its order id (it fired) or the mark passes it. New orders
        appear with the next snapshot, about every 12 minutes; the
        liquidation levels are re-priced every minute.

        **Real time on Pro and Enterprise.** Every other caller gets the
        map as it stood 15 minutes ago, with `delayed_minutes: 15` and an
        `upgrade` block for Pro. `delayed=1` asks for the 15-minute view on
        any plan. `GET /v1/liquidations/map` is unchanged. Credits: 5.

        Market data, not financial advice.
      operationId: getPainMap
      parameters:
        - name: market
          in: query
          description: >-
            One perp (`BTC`, `xyz:NVDA`) for its price levels. Omit for every
            market's totals.
          schema:
            type: string
            example: BTC
        - name: min_usd
          in: query
          description: >-
            Without `market`, markets with at least this much forced flow within
            3%.
          schema:
            type: number
            minimum: 0
        - name: limit
          in: query
          description: Without `market`, the most markets returned.
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 50
        - name: delayed
          in: query
          description: '1: the 15-minute view on any plan.'
          schema:
            type: integer
            enum:
              - 0
              - 1
            default: 0
      responses:
        '200':
          description: The Pain Map of one market, or every market's totals.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PainMap'
              example:
                as_of: '2026-11-20T18:25:00Z'
                delayed_minutes: 0
                snapshot:
                  height: 1228490000
                  time: '2026-11-20T17:46:35Z'
                grid_pct: 0.25
                range_pct: 20
                near_pct: 3
                markets:
                  - market: BTC-PERP
                    mark_px: 58952.5
                    within_3pct:
                      forced_sell_usd: 216535569
                      forced_buy_usd: 35286642
                      forced_flow_usd: 251822212
                      liq_long_usd: 140666043
                      liq_short_usd: 15309521
                      stop_sell_usd: 75869526
                      stop_buy_usd: 19977122
                      tp_buy_usd: 9756938
                      tp_sell_usd: 5059233
                    clusters:
                      - side: below
                        price_lo: 58362.975
                        price_hi: 58510.356
                        dist_pct: -0.87
                        forced_usd: 58350737
                        liquidations_usd: 43285726
                        stops_usd: 15065011
                        absorbing_tp_usd: 851971
                        orders: 167
                        liq_positions: 372
                        top_wallet: '0xf1abc9dab0ccf1c8b1697668afd328a6e2105748'
                        top_wallet_share: 0.221
                        one_wallet: false
                      - side: above
                        price_lo: 59984.169
                        price_hi: 60131.55
                        dist_pct: 1.88
                        forced_usd: 7288432
                        liquidations_usd: 5918555
                        stops_usd: 1369877
                        absorbing_tp_usd: 922095
                        orders: 156
                        liq_positions: 207
                        top_wallet: '0xa3a94167cb1ae46524877a32cd402c6b9f7582c7'
                        top_wallet_share: 0.623
                        one_wallet: true
                    levels:
                      - price_lo: 58362.975
                        price_hi: 58510.356
                        liq_long_usd: 43285726
                        liq_short_usd: 0
                        stop_sell_usd: 15065011
                        stop_buy_usd: 0
                        tp_sell_usd: 0
                        tp_buy_usd: 851971
                        forced_usd: 58350737
                        orders: 167
                        liq_positions: 372
                        top_wallet: '0xf1abc9dab0ccf1c8b1697668afd328a6e2105748'
                        top_wallet_share: 0.221
                    trigger_orders: 14211
                method: >-
                  Liquidation levels from the liquidation map plus every
                  untriggered stop-loss and take-profit order in our node's
                  state snapshot.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: No Pain Map for that market (`MARKET_NOT_FOUND`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            Not ready, or (for the 15-minute view) the service restarted less
            than 15 minutes ago; retry after `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PainMap:
      type: object
      required:
        - as_of
        - delayed_minutes
        - markets
      properties:
        as_of:
          type: string
          format: date-time
        delayed_minutes:
          type: integer
          enum:
            - 0
            - 15
        snapshot:
          type: object
          properties:
            height:
              type: integer
            time:
              type: string
              format: date-time
        grid_pct:
          type: number
          example: 0.25
        range_pct:
          type: number
          example: 20
        near_pct:
          type: number
          example: 3
        markets:
          type: array
          items:
            type: object
            properties:
              market:
                type: string
              mark_px:
                type: number
              within_3pct:
                type: object
                properties:
                  forced_sell_usd:
                    type: number
                    description: Long liquidations plus sell stops below mark.
                  forced_buy_usd:
                    type: number
                    description: Short liquidations plus buy stops above mark.
                  forced_flow_usd:
                    type: number
                  liq_long_usd:
                    type: number
                  liq_short_usd:
                    type: number
                  stop_sell_usd:
                    type: number
                  stop_buy_usd:
                    type: number
                  tp_buy_usd:
                    type: number
                    description: Buy take profits below mark (absorb forced sells).
                  tp_sell_usd:
                    type: number
                    description: Sell take profits above mark (absorb forced buys).
              clusters:
                type: array
                items:
                  type: object
                  properties:
                    side:
                      type: string
                      enum:
                        - below
                        - above
                    price_lo:
                      type: number
                    price_hi:
                      type: number
                    dist_pct:
                      type: number
                    forced_usd:
                      type: number
                    liquidations_usd:
                      type: number
                    stops_usd:
                      type: number
                    absorbing_tp_usd:
                      type: number
                    orders:
                      type: integer
                    liq_positions:
                      type: integer
                    top_wallet:
                      type: string
                    top_wallet_share:
                      type: number
                    one_wallet:
                      type: boolean
              levels:
                type: array
                description: Only with `market`.
                items:
                  type: object
                  properties:
                    price_lo:
                      type: number
                    price_hi:
                      type: number
                    liq_long_usd:
                      type: number
                    liq_short_usd:
                      type: number
                    stop_sell_usd:
                      type: number
                    stop_buy_usd:
                      type: number
                    tp_sell_usd:
                      type: number
                    tp_buy_usd:
                      type: number
                    forced_usd:
                      type: number
                    orders:
                      type: integer
                    liq_positions:
                      type: integer
                    top_wallet:
                      type: string
                    top_wallet_share:
                      type: number
              trigger_orders:
                type: integer
                description: Trigger orders placed on the market's levels.
        method:
          type: string
        upgrade:
          $ref: '#/components/schemas/SignalUpgrade'
        pro_pass:
          $ref: '#/components/schemas/ProPassOffer'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable error code.
              example: RATE_LIMIT_EXCEEDED
            message:
              type: string
              description: Human-readable error description.
              example: Rate limit exceeded. Retry after 60 seconds.
            upgrade:
              type: object
              description: >-
                On a limit a higher plan lifts, the next plan, its price, what
                it lifts and the call that gets it. On answers to a key every
                upgrade link (`url`, `terms`, `early_offer`, `alternative` and
                the message) carries a `checkout` token for the account, and
                `buy` is the one x402 call that buys the plan for the key; the
                same link is in `X-Ironflow-Upgrade` and `Link: <url>;
                rel="payment"`.
              properties:
                trial:
                  type: object
                  description: >-
                    On `DAILY_QUOTA_EXCEEDED` and `MONTHLY_QUOTA_EXCEEDED` for a
                    free key whose account never had a trial, the first option:
                    7 days of Explorer with the same key and no payment, started
                    with `start`. The plan below is the paid option. A key on a
                    running trial gets no `trial`; its `url` keeps Explorer
                    after the trial.
                  properties:
                    plan:
                      type: string
                      example: explorer
                    days:
                      type: integer
                      example: 7
                    credits_per_day:
                      type: integer
                      example: 25000
                    start:
                      type: string
                      example: POST https://api.ironflow.sh/v1/billing/trial
                    message:
                      type: string
                plan:
                  type: string
                  example: explorer
                price_usdc:
                  type: number
                  example: 49
                days:
                  type: integer
                  example: 30
                unlocks:
                  type: string
                  description: >-
                    What the plan adds, starting with SQL export to Parquet or
                    CSV
                limit:
                  type: string
                  description: >-
                    The limit this error hit: rate, history, window, sql_budget,
                    read_budget, streams, alerts, keyless_day or tier
                  example: rate
                lifts:
                  type: string
                  description: What the plan changes about that limit
                  example: 60 requests a minute now, 100 on Explorer
                covers:
                  type: string
                  description: On `HISTORY_OUT_OF_RANGE`, the history this plan serves
                  example: every fill since 25 May 2025
                your_plan_covers:
                  type: string
                  description: >-
                    On `HISTORY_OUT_OF_RANGE` to a key, the history the key's
                    own plan serves
                  example: the last 365 days, from 2025-11-20
                url:
                  type: string
                  format: uri
                  description: Where to upgrade; the link carries the plan and the limit
                how:
                  type: string
                  description: The API call that opens the upgrade request
                buy_url:
                  type: string
                  format: uri
                  description: Buy this plan in one x402 call (USDC on Base)
                  when x402 is on: null
                buy:
                  $ref: '#/components/schemas/BuyCall'
                pay_per_call:
                  type: object
                  description: On limits one paid call lifts
                  how to pay for this call with x402: null
                resets_at:
                  type: string
                  format: date-time
                  description: >-
                    On `DAILY_QUOTA_EXCEEDED`, `MONTHLY_QUOTA_EXCEEDED` and
                    `KEYLESS_DAILY_LIMIT`, when the refused credits come back:
                    the next 00:00 UTC, the 1st of the next month at 00:00 UTC,
                    or for a keyless caller the moment its rolling 24 hours fit
                    the call.
                  example: '2026-12-01T00:00:00Z'
                terms:
                  type: array
                  description: >-
                    Other ways to buy this plan, each its own plan id: the
                    yearly plan (explorer-12m, builder-12m, pro-12m: 365 days at
                    20% off).
                  items:
                    type: object
                    properties:
                      plan:
                        type: string
                        example: explorer-12m
                      price_usdc:
                        type: number
                        example: 468
                      days:
                        type: integer
                        example: 365
                      url:
                        type: string
                        format: uri
                      buy:
                        $ref: '#/components/schemas/BuyCall'
                plans_url:
                  type: string
                  format: uri
                  description: On `KEY_REQUIRED`, the plans page
                contact:
                  type: string
                  description: >-
                    On `KEY_REQUIRED`, where an app that serves users writes to
                    us
                  example: hello@ironflow.sh
                alternative:
                  type: object
                  description: >-
                    A second option with the same fields as upgrade, when one is
                    offered.
                  properties:
                    plan:
                      type: string
                      example: explorer
                    price_usdc:
                      type: number
                      example: 49
                    days:
                      type: integer
                      example: 30
                    unlocks:
                      type: string
                    limit:
                      type: string
                    lifts:
                      type: string
                    covers:
                      type: string
                    url:
                      type: string
                      format: uri
                    how:
                      type: string
                    buy_url:
                      type: string
                      format: uri
                    buy:
                      $ref: '#/components/schemas/BuyCall'
            pro_pass:
              type: object
              description: >-
                On every refusal (401, 402, 403, 429) of a `/v1/signals/` call
                below Pro: the 48-hour Pro pass (a Pro trial by invitation from
                the Ironflow team), once per account, which serves the signals
                in real time with the signal stream and alerts. `start` is the
                call that starts it (with the key, or with just an email for a
                keyless caller); the message ends with the same sentence.
              properties:
                hours:
                  type: integer
                  example: 48
                url:
                  type: string
                  format: uri
                  example: https://ironflow.sh/pro/pass
                start:
                  type: string
                  example: POST https://api.ironflow.sh/v1/billing/pro-pass
                how:
                  type: string
            get_key:
              type: object
              description: >-
                On every keyless 429 (daily cap, per-minute rate, SQL and read
                budgets, stream cap) and keyless history refusal, the one call
                that gets a free key. `page` is the key page tagged with the
                refusal (utm_campaign).
              properties:
                method:
                  type: string
                  example: POST
                url:
                  type: string
                  format: uri
                  example: https://api.ironflow.sh/v1/keys
                body:
                  type: object
                  additionalProperties:
                    type: string
                  example:
                    email: you@example.com
                page:
                  type: string
                  format: uri
            dataset:
              type: object
              description: >-
                On `HISTORY_OUT_OF_RANGE`, and on a rate limit for a closed past
                range, the free download that holds the requested rows, when one
                does. The message repeats it with its dates.
              properties:
                name:
                  type: string
                  example: Hyperliquid Liquidations
                url:
                  type: string
                  format: uri
                  example: >-
                    https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api
                holds:
                  type: string
                  example: every liquidation
                from:
                  type: string
                  format: date
                  example: '2025-05-25'
                through:
                  type: string
                  format: date
                  example: '2026-10-31'
            stream:
              type: string
              description: >-
                On the keyless daily credits, a per-minute rate limit, the read
                budget and a keyless history refusal of `/v1/liquidations` and
                `/v1/trades`, the live stream that replaces polling.
              example: >-
                GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a
                minute)
            allowed_from:
              type: integer
              format: int64
              description: >-
                On `HISTORY_OUT_OF_RANGE`, the earliest `from` (Unix ms; `at` on
                `/v1/positions`) the caller's history reaches; a request from
                there is served.
              example: 1794394800000
            did_you_mean:
              type: array
              items:
                type: string
              description: >-
                On an unknown market (the liquidation map, the order book), the
                markets the name most likely meant. The message repeats them.
              example:
                - xyz:GOLD-PERP
                - PAXG-PERP
            detail:
              type: string
              description: >-
                More context when there is some. On a credit refusal, what calls
                cost and how the `Retry-After` grows.
            agent:
              type: string
              description: >-
                On every limit refusal (429 or 402) with an `upgrade` block, an
                instruction written to an AI agent acting for a person: what to
                tell them (the limit and when it resets), the trial call when
                the account may start one, the account's pay link (with its
                `checkout` token) and, while x402 is on, the `POST
                /v1/billing/buy` call that buys the plan from a wallet with USDC
                on Base. Keyless refusals get the free key call (`POST
                /v1/keys`) instead, and the same sentence at the end of
                `message`. It always starts with "If you are an AI agent acting
                for someone:".
              example: >-
                If you are an AI agent acting for someone: tell them the free
                daily credit limit is used up and it resets on 21 November 2026
                at 00:00 UTC. A free 7-day Explorer trial starts with one call:
                POST https://api.ironflow.sh/v1/billing/trial with your key. To
                keep going after that, give them this pay link:
                https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_...
                (Explorer, $49 per 30 days; it opens the payment for their
                account). If you control a wallet with USDC on Base, you can buy
                directly: POST https://api.ironflow.sh/v1/billing/buy
                {"plan":"explorer"} with your key (it answers 402 with x402
                terms to pay).
            nearest_routes:
              type: array
              items:
                type: string
              description: >-
                On `NOT_FOUND` for a path with no endpoint, up to 3 endpoints
                closest to it. The message repeats them.
              example:
                - /v1/liquidations
                - /v1/liquidations/summary
    SignalUpgrade:
      type: object
      description: >-
        The Pro plan, on answers that are 15 minutes late. Same fields as the
        `upgrade` object of `Error`.
      additionalProperties: true
      properties:
        plan:
          type: string
          example: pro
        price_usdc:
          type: number
          example: 499
        days:
          type: integer
          example: 30
        unlocks:
          type: string
        lifts:
          type: string
        url:
          type: string
          format: uri
        how:
          type: string
        terms:
          type: array
          items:
            type: object
            additionalProperties: true
            properties:
              plan:
                type: string
                example: pro-12m
              price_usdc:
                type: number
                example: 4788
              days:
                type: integer
                example: 365
              url:
                type: string
                format: uri
    ProPassOffer:
      type: object
      description: >
        The 48-hour Pro pass (a Pro trial the Ironflow team gives by
        invitation), on signal answers. On a key whose pass runs: `active` with

        `ends_at` and `buy_url`. On a delayed answer to a key that may start it
        (free, Explorer or

        Builder, once per account): `available` with `activate` (the call, with
        the same key) and

        `activate_url` (a one-click link to ironflow.sh/pro/pass). On a keyless
        answer: how to

        start it with just an email (ironflow.sh/pro/pass, or POST
        /v1/billing/pro-pass/email),

        which makes the free key too (`key_url` is the plain free key). Absent
        otherwise.
      required:
        - available
        - hours
        - how
      properties:
        available:
          type: boolean
          description: This key's account may start its pass now
        active:
          type: boolean
          description: The pass runs now
        hours:
          type: integer
          example: 48
        ends_at:
          type: string
          format: date-time
          description: When the running pass ends
        activate_url:
          type: string
          format: uri
          description: One click starts the pass (a signed link
          7 days): null
        activate:
          type: string
          example: POST https://api.ironflow.sh/v1/billing/pro-pass
        key_url:
          type: string
          format: uri
          description: Where a keyless caller gets the free key first
        buy_url:
          type: string
          format: uri
          description: Pro
          to keep real time after the pass: null
        how:
          type: string
        agent:
          type: string
          description: The sentence for an AI agent acting for someone
    BuyCall:
      type: object
      description: >-
        The one call that buys a plan for the key's own account, paid with x402
        (USDC on Base). On answers to a key while x402 is on.
      required:
        - call
        - body
        - price_usdc
      properties:
        call:
          type: string
          example: POST https://api.ironflow.sh/v1/billing/buy
        body:
          type: object
          additionalProperties:
            type: string
          example:
            plan: explorer
        price_usdc:
          type: number
          example: 49
        how:
          type: string
  responses:
    BadRequest:
      description: Invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: BAD_REQUEST
              message: market is required (e.g. BTC-PERP)
    Unauthorized:
      description: >-
        Missing or invalid API key, or `KEY_REQUIRED`: a keyless app that names
        itself used its 100 credits in 24 hours across all its IPs ("<app> runs
        from many addresses. Apps need a free API key: https://ironflow.sh/key
        (1,000 credits a day). Real-time liquidation streams, the liquidation
        map and SQL history: Explorer $49/mo ($39/mo yearly). All plans:
        https://ironflow.sh/pricing. For apps serving users:
        hello@ironflow.sh."), with `get_key`, `upgrade` (free key, Explorer as
        `alternative`, the plans page as `plans_url` and the sales address as
        `contact`), `agent` and `Retry-After`.
      headers:
        WWW-Authenticate:
          schema:
            type: string
            example: Bearer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHORIZED
              message: Invalid or missing API key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Ironflow API key, format `if_xxxx`. Free keys at
        https://ironflow.sh/key. Optional on read endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.