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

# Ironflow API plans and prices

> GET /v1/billing/plans lists the paid plans, their limits and prices in USDC, and how to pay from code on Base or Hyperliquid, or in one call with x402.



## OpenAPI

````yaml GET /v1/billing/plans
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/billing/plans:
    get:
      tags:
        - Billing
      summary: List paid plans and how to pay
      description: >
        The plans an API key can be upgraded to, and for each network
        (`networks`: Hyperliquid, and Base

        when enabled) the receiving address and the steps to pay from code. No

        key needed. `network`, `to_address` and `steps` at the top level are

        the Hyperliquid ones, kept for existing callers.
      operationId: listPlans
      responses:
        '200':
          description: Plans and payment instructions.
          content:
            application/json:
              schema:
                type: object
                required:
                  - plans
                  - days
                  - token
                  - network
                  - to_address
                  - steps
                properties:
                  plans:
                    type: array
                    items:
                      $ref: '#/components/schemas/BillingPlan'
                  days:
                    type: integer
                    description: Days one payment keeps a plan
                  renewal:
                    type: string
                  token:
                    type: string
                    enum:
                      - USDC
                  network:
                    type: string
                    enum:
                      - Hyperliquid
                  to_address:
                    type: string
                    description: Ironflow's receiving address on Hyperliquid
                  networks:
                    type: array
                    description: >-
                      Each network a plan can be paid on, with its address and
                      steps.
                    items:
                      $ref: '#/components/schemas/PaymentNetwork'
                  steps:
                    type: array
                    items:
                      type: string
                  x402:
                    type: string
                    description: How to buy a plan in one x402 call instead
                  page:
                    type: string
                    format: uri
                  trial:
                    type: object
                    description: >-
                      The 7-day Explorer trial for free accounts that used up
                      their credits, once per person (POST /v1/billing/trial).
                    properties:
                      plan:
                        type: string
                        example: explorer
                      days:
                        type: integer
                        example: 7
                      for:
                        type: string
                      start:
                        type: string
                      status:
                        type: string
              example:
                plans:
                  - id: explorer
                    name: Explorer
                    price_usdc: 49
                    days: 30
                    requests_per_minute: 100
                    credits_per_day: 25000
                    history_days: 90
                    x402_buy_url: https://api.ironflow.sh/x402/v1/plans/explorer/buy
                  - id: explorer-12m
                    name: Explorer (yearly)
                    price_usdc: 468
                    days: 365
                    requests_per_minute: 100
                    credits_per_day: 25000
                    history_days: 90
                    x402_buy_url: https://api.ironflow.sh/x402/v1/plans/explorer-12m/buy
                  - id: builder
                    name: Builder
                    price_usdc: 199
                    days: 30
                    requests_per_minute: 1000
                    credits_per_day: 250000
                    history_days: 365
                    x402_buy_url: https://api.ironflow.sh/x402/v1/plans/builder/buy
                  - id: builder-12m
                    name: Builder (yearly)
                    price_usdc: 1908
                    days: 365
                    requests_per_minute: 1000
                    credits_per_day: 250000
                    history_days: 365
                    x402_buy_url: https://api.ironflow.sh/x402/v1/plans/builder-12m/buy
                  - id: pro
                    name: Pro
                    price_usdc: 499
                    days: 30
                    requests_per_minute: 3000
                    credits_per_day: 1000000
                    history_days: 0
                    x402_buy_url: https://api.ironflow.sh/x402/v1/plans/pro/buy
                  - id: pro-12m
                    name: Pro (yearly)
                    price_usdc: 4788
                    days: 365
                    requests_per_minute: 3000
                    credits_per_day: 1000000
                    history_days: 0
                    x402_buy_url: https://api.ironflow.sh/x402/v1/plans/pro-12m/buy
                days: 30
                renewal: >-
                  none: a plan runs for days after the payment; paying again
                  extends it
                token: USDC
                network: Hyperliquid
                to_address: '0x0000000000000000000000000000000000000000'
                networks:
                  - id: hyperliquid
                    name: Hyperliquid
                    token: USDC
                    to_address: '0x0000000000000000000000000000000000000000'
                    steps:
                      - >-
                        POST https://api.ironflow.sh/v1/billing/upgrade with
                        {"email", "wallet", "plan", "network": "hyperliquid"}
                  - id: base
                    name: Base
                    token: USDC
                    to_address: '0x0000000000000000000000000000000000000001'
                    chain_id: 8453
                    token_contract: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
                    confirmations_required: 15
                    steps:
                      - >-
                        POST https://api.ironflow.sh/v1/billing/upgrade with
                        {"email", "wallet", "plan", "network": "base"}
                steps:
                  - >-
                    POST https://api.ironflow.sh/v1/billing/upgrade with
                    {"email", "wallet", "plan"}
                page: https://ironflow.sh/upgrade
                trial:
                  plan: explorer
                  days: 7
                  for: >-
                    free accounts that used up their daily or monthly credits,
                    once per person
                  start: POST https://api.ironflow.sh/v1/billing/trial with the key
                  status: GET https://api.ironflow.sh/v1/billing/trial with the key
      security: []
components:
  schemas:
    BillingPlan:
      type: object
      required:
        - id
        - name
        - price_usdc
        - requests_per_minute
        - history_days
      properties:
        id:
          type: string
          enum:
            - explorer
            - explorer-12m
            - builder
            - builder-12m
            - pro
            - pro-12m
        name:
          type: string
        price_usdc:
          type: number
          description: Price of one payment
          which keeps the plan `days` days: null
        days:
          type: integer
          description: Days one payment keeps the plan (30; 365 for the -12m yearly plans)
        unlocks:
          type: string
        liquidations:
          type: object
          description: >-
            Only on the Liquidations plans, which are no longer sold: what they
            give on the liquidation endpoints
          properties:
            streams:
              type: integer
              description: Live liquidation streams at once
              example: 2
            stream_minutes_free:
              type: boolean
              description: A liquidation stream costs 1 credit to open and nothing a minute
            history_days:
              type: integer
              description: History on the liquidation endpoints
              example: 90
            alerts:
              type: integer
              example: 5
        requests_per_minute:
          type: integer
        credits_per_day:
          type: integer
          description: >-
            Credits a UTC day per account, all its keys together (0: no cap). A
            read costs 1, analytics 5, SQL 10, a stream 1 a minute
        history_days:
          type: integer
          description: 'Days of history (0: no cutoff, every fill since May 2025 on Pro)'
        x402_buy_url:
          type: string
          format: uri
          description: Buy it in one x402 call (USDC on Base)
        buy:
          type: object
          description: >-
            With an API key, the one x402 call that buys it for the key's
            account: POST /v1/billing/buy with `body`
          properties:
            call:
              type: string
              example: POST https://api.ironflow.sh/v1/billing/buy
            body:
              type: object
              additionalProperties:
                type: string
              example:
                plan: explorer
            with:
              type: string
    PaymentNetwork:
      type: object
      required:
        - id
        - name
        - token
        - to_address
        - steps
      properties:
        id:
          type: string
          enum:
            - hyperliquid
            - base
        name:
          type: string
        token:
          type: string
          enum:
            - USDC
        to_address:
          type: string
          description: Ironflow's receiving address on this network
        chain_id:
          type: integer
          description: On Base only (8453)
        token_contract:
          type: string
          description: On Base only
          native USDC: null
        confirmations_required:
          type: integer
          description: On Base only
        steps:
          type: array
          items:
            type: string
  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.