> ## 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.

# Signal track record

> GET /v1/signals/ledger lists every resolved Ironflow Edge call 24 hours or older and what the market did next, no key needed.

The same track record is shown at [ironflow.sh/signals](https://ironflow.sh/signals). A call is listed once it is resolved and 24 hours old; live calls are on Pro. `teaser` counts each signal's calls of the last 24 hours. Hit rates appear once a signal has 30 resolved live calls.


## OpenAPI

````yaml GET /v1/signals/ledger
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; reopening within a minute
    of the

    last open keeps at least 30 seconds on it, doubling up to 10 minutes while
    the loop

    goes on. The answer states the tier's stream cap and how many streams the
    caller

    has open; a key's answer says why (most often its credits ran out) and
    carries the

    `upgrade` block. 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 older than 90 days is free to download, without

    wallets, 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 Hyperliquid market data.
  - 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: >-
      Ironflow Edge signals: Liquidation Pressure, Opening Bell, Flow Ahead, the
      Pain Map and Flow alerts. Live on Pro; other plans get 402 PRO_REQUIRED
      with a teaser of the last 24 hours. The track record of every resolved
      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 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/ledger:
    get:
      tags:
        - Signals
      summary: The public signal track record
      description: |
        Every Ironflow Edge call once it is resolved and at least 24 hours
        old (`min_age_hours`), the moment it fired and what happened next,
        the same for every caller (it backs https://ironflow.sh/signals).
        No key needed, no credits. Live calls are on Pro: the signal
        endpoints and `GET /v1/signals/stream`. `teaser` counts each
        signal's live calls of the last 24 hours, without the calls.

        A Liquidation Pressure call is a market side entering high (at most
        one per side every 4 hours). It resolves 4 hours later: `hit` when
        that side's liquidations in the 4 hours reached a top-5% wave (its
        own 95th percentile of 4-hour totals over the prior 14 days), with
        the largest move toward the trigger, the move at 4 hours and
        whether the trigger was touched. An Opening Bell call is one
        market's 09:29 preview, resolved at the open. A Flow Ahead entry is
        a TWAP that started with at least $250,000 left to execute; when it
        stops, the entry gets the share executed and what the mark did over
        its life (end, highest and lowest against the start). A Flow alert
        entry would be one event of `GET /v1/signals/flow`, but Flow alerts
        have no outcome yet, so they are counted in `stats` and `teaser`
        and not listed. Flow Ahead and Flow alert entries are facts, not
        calls, and have no hit rate.

        `stats` counts live calls per signal; `hit_rate` stays null until
        30 live calls are resolved. Rows with `source: backfilled` were
        computed afterwards from stored data and never count toward it.
        Nothing is removed.
      operationId: getSignalLedger
      parameters:
        - name: signal
          in: query
          description: >
            One signal (`liquidation_pressure`, `opening_bell`, `flow_ahead`,
            `flow` or `sweep`), or

            several comma-separated, such as
            `liquidation_pressure,opening_bell,flow_ahead`

            for the calls and large TWAPs without the Flow alerts; omit for all.
          schema:
            type: string
            pattern: >-
              ^(liquidation_pressure|opening_bell|flow_ahead|flow)(,(liquidation_pressure|opening_bell|flow_ahead|flow))*$
            example: flow
        - $ref: '#/components/parameters/signalMarket'
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: before
          in: query
          description: >-
            Calls before this time (the previous page's
            `pagination.next_before`).
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: One page of calls, newest first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignalLedger'
              example:
                as_of: '2026-11-19T16:00:00Z'
                min_age_hours: 24
                stats:
                  - signal: liquidation_pressure
                    calls: 12
                    resolved: 10
                    hits: 5
                    hit_rate: null
                    min_resolved_for_rate: 30
                    backfilled_calls: 24
                  - signal: opening_bell
                    calls: 64
                    resolved: 60
                    hits: 54
                    hit_rate: 0.9
                    min_resolved_for_rate: 30
                    backfilled_calls: 1400
                    first_call_at: '2026-11-20T14:29:00Z'
                data:
                  - id: lp-ETH-PERP-down-1763552700000
                    signal: liquidation_pressure
                    time: '2026-11-19T11:45:00Z'
                    market: ETH-PERP
                    side: down
                    level: high
                    price_at_signal: 1652.6
                    trigger_price: 1646.4
                    trigger_dist_pct: 0.37
                    trigger_sigma: 0.32
                    notional_at_risk_usd: 12800000
                    source: live
                    status: resolved
                    outcome:
                      result: hit
                      resolved_at: '2026-11-19T15:50:00Z'
                      liquidations_4h_usd: 31500000
                      wave_threshold_usd: 9000000
                      max_move_4h_pct: 2.2
                      move_4h_pct: -1.1
                      trigger_touched: true
                pagination:
                  has_more: true
                  next_before: '2026-11-19T11:45:00.000Z'
                teaser:
                  window: 24h
                  as_of: '2026-11-20T16:00:00Z'
                  summary: >-
                    Liquidation Pressure: 32 calls in 24h, last resolved 2h ago;
                    Opening Bell: 32 calls in 24h, 93 of 95 right in 7 days,
                    last resolved 1h ago; Flow Ahead: 284 large TWAPs in 24h,
                    last one tracked to its end 12 min ago; Flow alerts: 717
                    events in 24h, latest 3 min ago
                  signals:
                    - signal: liquidation_pressure
                      name: Liquidation Pressure
                      calls_24h: 32
                      last_call_at: '2026-11-20T15:20:00Z'
                      last_resolved_at: '2026-11-20T14:00:00Z'
                      last_result: miss
                      resolved_7d: 155
                      summary: >-
                        Liquidation Pressure: 32 calls in 24h, last resolved 2h
                        ago
                  track_record: >-
                    https://ironflow.sh/signals?utm_source=api&utm_medium=signals
                  pro_page: https://ironflow.sh/pro?utm_source=api&utm_medium=signals
        '400':
          $ref: '#/components/responses/BadRequest'
        '503':
          description: The ledger could not be read; retry in a few seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  parameters:
    signalMarket:
      name: market
      in: query
      description: >
        One perp, or a comma-separated list of up to 50 read as on `GET
        /v1/liquidations`:

        symbols (`BTC-PERP`, `xyz:NVDA-PERP`) or Hyperliquid coin names (`BTC`,
        `xyz:NVDA`),

        repeats ignored. The answer has the same shape and order as for every
        market, with

        only the listed ones. An entry that is no market, or more than 50
        entries, is 400

        `INVALID_PARAMETER` naming them or the limit. Omit for every market.
      schema:
        type: string
        example: BTC,ETH,SOL,BNB,HYPE
  schemas:
    SignalLedger:
      type: object
      required:
        - as_of
        - min_age_hours
        - stats
        - data
        - pagination
      properties:
        as_of:
          type: string
          format: date-time
          description: The newest call time listed (now minus min_age_hours).
        min_age_hours:
          type: integer
          enum:
            - 24
          description: A call is listed once resolved and this many hours old.
        teaser:
          $ref: '#/components/schemas/SignalTeaser'
        stats:
          type: array
          items:
            type: object
            properties:
              signal:
                type: string
                enum:
                  - liquidation_pressure
                  - opening_bell
                  - flow_ahead
                  - flow
                  - sweep
              calls:
                type: integer
                description: >-
                  Live calls (flat and void previews are not calls). Flow Ahead:
                  large TWAP starts recorded; Flow alerts: events recorded;
                  sweeps: sweeps recorded. None of the three has a hit rate here
                  (each sweep carries its own outcome).
              resolved:
                type: integer
              hits:
                type: integer
              hit_rate:
                type: number
                nullable: true
                description: hits / resolved, from 30 resolved live calls; null before.
              min_resolved_for_rate:
                type: integer
                example: 30
              backfilled_calls:
                type: integer
              first_call_at:
                type: string
                format: date-time
                nullable: true
                description: The first live call's time.
              base_rate:
                type: number
                description: >-
                  Liquidation Pressure, once hit_rate is set: how often any 4
                  hours on the market sides of the last 30 days' calls reached a
                  wave by the same rule (top 5% of that side's last 14 days, not
                  zero), weighted by calls.
              lift:
                type: number
                description: >-
                  Liquidation Pressure: hit_rate over base_rate, one decimal.
                  Omitted when the base rate cannot be measured.
              avg_liquidated_4h_usd:
                type: number
                description: >-
                  Liquidation Pressure: mean liquidations (USD) on the called
                  side in the 4 hours after a resolved live call.
              trigger_touched_rate:
                type: number
                description: >-
                  Liquidation Pressure: share of resolved live calls whose
                  trigger price was reached within 4 hours.
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              signal:
                type: string
                enum:
                  - liquidation_pressure
                  - opening_bell
                  - flow_ahead
                  - flow
                  - sweep
              event:
                type: string
                enum:
                  - large_order
                  - large_cancel
                  - cancel_wave
                  - twap_start
                  - order_near_liq_cluster
                  - wallet_sweep
                  - market_sweep
                description: Flow alerts and sweeps only.
              flow:
                $ref: '#/components/schemas/FlowAlert'
              sweep:
                $ref: '#/components/schemas/Sweep'
                description: Sweeps only, without the wallet; the outcome is in `outcome`.
              time:
                type: string
                format: date-time
              market:
                type: string
              side:
                type: string
                description: >-
                  Liquidation Pressure: down or up. Opening Bell: up, down or
                  flat. Flow Ahead and Flow alerts: buy or sell.
              level:
                type: string
              price_at_signal:
                type: number
              trigger_price:
                type: number
              trigger_dist_pct:
                type: number
              trigger_sigma:
                type: number
              notional_at_risk_usd:
                type: number
              prior_close:
                type: number
              prior_close_at:
                type: string
                format: date-time
              implied_gap_pct:
                type: number
              twap:
                type: object
                description: Flow Ahead only. The TWAP that started.
                properties:
                  twap_id:
                    type: integer
                  wallet:
                    type: string
                    description: The TWAP's wallet (public on Hyperliquid).
                  size:
                    type: number
                    description: Total size in coins.
                  minutes:
                    type: number
                  remaining_usd:
                    type: number
                    description: Notional left to execute when it was seen
                    at mark.: null
                  started_at:
                    type: string
                    format: date-time
                  randomize:
                    type: boolean
                  reduce_only:
                    type: boolean
              source:
                type: string
                enum:
                  - live
                  - backfilled
              status:
                type: string
                enum:
                  - resolved
                description: Every listed call is resolved.
              outcome:
                type: object
                nullable: true
                additionalProperties: true
                properties:
                  result:
                    type: string
                    enum:
                      - hit
                      - miss
                      - no_call
                      - void
                      - finished
                      - terminated
                      - ended
                    description: >-
                      Flow Ahead: finished, terminated (stopped early) or ended
                      (past its end time with no status from the node).
                  resolved_at:
                    type: string
                    format: date-time
                  executed_pct:
                    type: number
                    description: Flow Ahead. Share of the TWAP executed.
                  end_price:
                    type: number
                    description: Flow Ahead. Mark when the TWAP stopped.
                  life_move_pct:
                    type: number
                    description: >-
                      Flow Ahead. Mark at the end against the mark when it was
                      seen.
                  life_max_up_pct:
                    type: number
                    description: Flow Ahead. Highest mark over its life against the start.
                  life_max_down_pct:
                    type: number
                    description: Flow Ahead. Lowest mark over its life against the start.
                  liquidations_4h_usd:
                    type: number
                  wave_threshold_usd:
                    type: number
                  max_move_4h_pct:
                    type: number
                  move_4h_pct:
                    type: number
                  trigger_touched:
                    type: boolean
                  open_price:
                    type: number
                  actual_gap_pct:
                    type: number
                  max_with_5m_pct:
                    type: number
                    description: >-
                      Sweeps: largest move with the sweep within 5 minutes (also
                      _1m_ and _15m_, and max_against_*).
                  liquidations_5m_usd:
                    type: number
                    description: >-
                      Sweeps: liquidations on the swept side within 5 minutes
                      (also liquidations_15m_usd).
        pagination:
          type: object
          properties:
            has_more:
              type: boolean
            next_before:
              type: string
              nullable: true
    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.
            teaser:
              $ref: '#/components/schemas/SignalTeaser'
            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
                app_callers_today:
                  type: integer
                  description: >-
                    On a free key's limit when the key was called from 25 or
                    more different IP addresses today (UTC), an app serving its
                    users: how many. The block is then Builder, which apps with
                    users (commercial use) need.
                  example: 112
                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'
            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
            app:
              type: object
              description: >-
                On a keyless refusal (`KEY_REQUIRED`, `KEYLESS_DAILY_LIMIT`,
                keyless `RATE_LIMIT_EXCEEDED` and `STREAM_OPEN_LIMIT`) of a
                request whose User-Agent or `X-Ironflow-Client` names an app,
                the next step for that app: the key page with the app filled in
                and, for an app called from 25 or more addresses today (UTC),
                the plans page, as apps that serve users need Builder.
              required:
                - name
                - key_url
                - serves_users
                - message
              properties:
                name:
                  type: string
                  description: The app as it named itself, without its version
                  example: HYPE-liq-check
                key_url:
                  type: string
                  format: uri
                  example: >-
                    https://ironflow.sh/key?app=HYPE-liq-check&utm_source=api&utm_medium=keyless_refusal&utm_content=KEY_REQUIRED&utm_campaign=key_required
                serves_users:
                  type: boolean
                  description: >-
                    True when the app was called from 25 or more addresses today
                    (UTC)
                callers_today:
                  type: integer
                  description: When `serves_users`, the app's distinct callers today
                  example: 1400
                plans_url:
                  type: string
                  format: uri
                  description: When `serves_users`, the plans page
                message:
                  type: string
                  description: The next step in one or two plain sentences
                  example: >-
                    Get a free key for HYPE-liq-check in one step:
                    https://ironflow.sh/key?app=HYPE-liq-check&utm_source=api&utm_medium=keyless_refusal&utm_content=KEY_REQUIRED&utm_campaign=key_required
            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
            bulk_rows:
              type: object
              description: >-
                On `BULK_ROWS_MONTHLY_EXCEEDED`, the account's monthly bulk-row
                budget (SQL export files, JSON SQL result rows and REST history
                rows older than 7 days; a liquidation row counts 10 times) and
                where bulk history is licensed instead.
              properties:
                limit:
                  type: integer
                  format: int64
                  description: Rows the account's files may hold this UTC month.
                used:
                  type: integer
                  format: int64
                  description: Rows its files held so far this month.
                remaining:
                  type: integer
                  format: int64
                  description: '`limit` minus `used`, never below 0.'
                resets_at:
                  type: string
                  format: date-time
                  description: The next 1st of the month, 00:00 UTC.
                data_licence:
                  type: object
                  description: >-
                    The one-time data licence for bulk history with perpetual
                    retention and model-training rights.
                  properties:
                    contact:
                      type: string
                      example: hello@ironflow.sh
                    url:
                      type: string
                      example: https://ironflow.sh/data-licence
    SignalTeaser:
      type: object
      description: >-
        What Ironflow Edge did in the last 24 hours, on a signal read refused
        below Pro and on the track record: counts and times only, never a
        market, price, side or wallet of a call.
      properties:
        window:
          type: string
          example: 24h
        as_of:
          type: string
          format: date-time
        summary:
          type: string
          description: Every signal's line in one sentence.
        signals:
          type: array
          description: >-
            liquidation_pressure, opening_bell, flow_ahead, flow and sweep,
            always in that order.
          items:
            type: object
            properties:
              signal:
                type: string
                enum:
                  - liquidation_pressure
                  - opening_bell
                  - flow_ahead
                  - flow
                  - sweep
              name:
                type: string
                example: Liquidation Pressure
              calls_24h:
                type: integer
                description: >-
                  Live calls of the last 24 hours (Flow Ahead: large TWAP
                  starts; Flow alerts: events).
              last_call_at:
                type: string
                format: date-time
                nullable: true
              last_resolved_at:
                type: string
                format: date-time
                nullable: true
                description: The newest outcome; null for Flow alerts
                which have none.: null
              last_result:
                type: string
                enum:
                  - hit
                  - miss
                  - finished
                  - terminated
                  - ended
              resolved_7d:
                type: integer
              hits_7d:
                type: integer
                description: Opening Bell only.
              summary:
                type: string
                example: 'Liquidation Pressure: 32 calls in 24h, last resolved 2h ago'
        track_record:
          type: string
          format: uri
        pro_page:
          type: string
          format: uri
    FlowAlert:
      type: object
      required:
        - id
        - event
        - time
        - seen_at
        - market
        - side
        - usd
        - price
        - threshold_usd
        - depth_usd
      properties:
        id:
          type: string
          description: >-
            Stable id: fl-<event>-<oid> for orders, fl-twap_start-<twap id>,
            fl-cancel_wave-<market>-<side>-<ms>.
        event:
          type: string
          enum:
            - large_order
            - large_cancel
            - cancel_wave
            - twap_start
            - order_near_liq_cluster
        time:
          type: string
          format: date-time
          description: When it was written (the stream and the delayed=1 view go by it).
        seen_at:
          type: string
          format: date-time
          description: Block time the event was seen on the node.
        market:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
          description: 'buy: a bid, a buy TWAP or a wave on the bids.'
        usd:
          type: number
          description: >-
            The order's USD, the liquidity pulled (waves) or the USD left to
            execute (TWAPs).
        price:
          type: number
          description: The market's last trade
          else its mark: null
          when seen.: null
        threshold_usd:
          type: number
          description: The bar the event passed on this market side.
        depth_usd:
          type: number
          description: >-
            Resting USD within 2% of the price on the order's side (a TWAP: the
            side it trades into).
        wallet:
          type: string
          description: >-
            The order's or TWAP's wallet (public on Hyperliquid); for a wave,
            the wallet that cancelled most.
        order:
          type: object
          description: large_order, large_cancel and order_near_liq_cluster.
          properties:
            oid:
              type: integer
            price:
              type: number
            size:
              type: number
              description: Size in coins.
            dist_pct:
              type: number
              description: Signed distance from `price` in percent.
            rested_s:
              type: number
              description: >-
                Seconds it had rested when reported, or when pulled
                (large_cancel).
        wave:
          type: object
          description: cancel_wave.
          properties:
            cancels:
              type: integer
            cancelled_usd:
              type: number
              description: Everything cancelled near the price in the window.
            pulled_usd:
              type: number
              description: Cancelled minus new orders on that side.
            window_s:
              type: number
            top_wallet:
              type: string
            top_wallet_share:
              type: number
              description: The top wallet's share of the cancelled USD.
        twap:
          type: object
          description: twap_start.
          properties:
            twap_id:
              type: integer
            wallet:
              type: string
            size:
              type: number
            minutes:
              type: number
            remaining_usd:
              type: number
            started_at:
              type: string
              format: date-time
            randomize:
              type: boolean
            reduce_only:
              type: boolean
        cluster:
          type: object
          description: >-
            order_near_liq_cluster. The liquidation map bucket next to the
            order.
          properties:
            price:
              type: number
              description: The bucket's middle.
            usd:
              type: number
              description: Notional that liquidates there.
            side:
              type: string
              enum:
                - long
                - short
              description: 'long: longs liquidate there (below the price).'
    Sweep:
      type: object
      required:
        - id
        - event
        - time
        - seen_at
        - market
        - side
        - level
        - usd
        - window_s
        - threshold_usd
        - price_before
        - price_after
        - pressure
        - outcome
      properties:
        id:
          type: string
          description: 'Stable id: sw-<event>-<market>-<side>-<ms seen>.'
        event:
          type: string
          enum:
            - wallet_sweep
            - market_sweep
        time:
          type: string
          format: date-time
          description: When it was written (the stream and the delayed=1 view go by it).
        seen_at:
          type: string
          format: date-time
          description: Time of the fill that passed the threshold.
        market:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
          description: 'The takers'' side: sell means they hit the bids.'
        level:
          type: string
          enum:
            - high
            - med
          description: 'high: the sweep goes the way Liquidation Pressure is med or high.'
        usd:
          type: number
          description: >-
            The wallet's taker volume (wallet_sweep) or the net taker volume
            (market_sweep) in the window when it passed the threshold.
        window_s:
          type: number
        threshold_usd:
          type: number
          description: The bar it passed on this market.
        price_before:
          type: number
          description: The market's price before the sweep's first fill.
        price_after:
          type: number
          description: The price of the fill that passed the threshold.
        move_pct:
          type: number
          description: price_after against price_before
          percent.: null
        prior_5m_usd:
          type: number
          description: The market's taker volume of the 5 minutes before the sweep.
        wallet:
          type: string
          description: >-
            wallet_sweep: the taker (public on Hyperliquid); market_sweep: the
            top wallet when it made at least half of the swept side.
        wallet_share:
          type: number
          description: >-
            market_sweep: the top wallet's share of the swept side's taker
            volume.
        pressure:
          type: object
          description: >-
            The swept side's Liquidation Pressure when the sweep landed (a sell
            sweep: the down side, longs at risk). Level empty when unknown.
          properties:
            side:
              type: string
              enum:
                - down
                - up
            level:
              type: string
              enum:
                - low
                - med
                - high
                - ''
            within_1pct_usd:
              type: number
            within_2pct_usd:
              type: number
            trigger_dist_pct:
              type: number
        outcome:
          type: object
          nullable: true
          description: What followed, 15 minutes after the sweep; null until then.
          properties:
            result:
              type: string
              enum:
                - hit
                - miss
              description: 'hit: price moved at least 0.5% with the sweep within 5 minutes.'
            resolved_at:
              type: string
              format: date-time
            max_with_1m_pct:
              type: number
            max_with_5m_pct:
              type: number
            max_with_15m_pct:
              type: number
            max_against_1m_pct:
              type: number
            max_against_5m_pct:
              type: number
            max_against_15m_pct:
              type: number
            liquidations_5m_usd:
              type: number
              description: >-
                Liquidations on the swept side (a sell sweep: longs) within 5
                minutes.
            liquidations_15m_usd:
              type: number
    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)
  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.