Skip to main content

Limits by tier

The Ironflow team can give a free, Explorer or Builder account a 48-hour Pro trial by invitation: Pro’s real-time signals, stream and signal alerts, with the account’s own limits. It starts only with the single-use invite code that comes with the invitation. See Pro trial, by invitation. Bulk rows. One budget per account for the UTC calendar month, shared by the rows in SQL export files, /v1/query result rows, and REST history rows older than 7 days: fills, trades, liquidations, funding, open interest, mark and oracle prices, candles, ADL, premium, the hourly market panel, vault operations, positions at a past time and the wallet analytics lists. Reads of the last 7 days never count. A liquidation row counts 10 times toward the budget: a row of /v1/liquidations, and every row of a SQL result or export that reads hl.liquidations. A running 7-day trial has no bulk rows: no SQL export, SQL at free-key limits, and REST pages with rows older than 7 days answer 402 TRIAL_NO_BULK_ROWS with the paid plan’s link; recent reads work as usual. Data from a monthly plan is licensed for use while the plan runs, including serving it to your users on Builder and above. Bulk exports may not be kept, or used to train or fine-tune machine-learning models, after the plan ends, and models trained or fine-tuned on bulk plan data may be used only while the plan runs. For bulk history to keep without time limit, or to train models on, ask for a one-time data licence at [email protected] (Terms 15.5). The Liquidations plan is no longer sold (since 20 November 2026). Accounts that bought it keep its limits until it ends: free-key limits with 5,000 credits a day and no monthly cap, and on the liquidation endpoints their full history, 2 live liquidation streams that cost nothing a minute, and 5 alerts. Keyless limits are per client IP; key limits are per key. An app that names itself in its User-Agent (for example my-liq-bot/1.0, not an HTTP library, a browser or curl) also shares one keyless allowance of 100 credits a day across all the IPs it calls from; past it the app gets KEY_REQUIRED and needs a key, a free one included. On the hosted MCP server each claude.ai conversation gets 30 keyless credits a day of its own in place of the per-IP ones, up to 3,000 a day for all claude.ai conversations together. Without a key, /v1/liquidations and /v1/trades end 60 seconds before now (the response’s notice says so); any key, a free one included, reads them live, and the live streams are live for everyone. Past a limit the API answers with the error code below and, where a higher tier lifts it, an upgrade object in the error naming the next plan, its price, what it lifts and the call that gets it:
Every limit refusal (429 or 402) with an upgrade object also carries agent: a few sentences written to an AI agent acting for a person. It says what to tell them (the limit and when it resets), the trial call when the account may start one, the account’s own pay link, and the POST /v1/billing/buy call for an agent that controls a wallet with USDC on Base. It always starts with “If you are an AI agent acting for someone:”. Without a key it gives the free key call instead, as a curl an agent can run, with https://ironflow.sh/key as the fallback, and ends message too (except an app’s KEY_REQUIRED, whose message is written to the app’s owner). GET /v1/usage carries the same agent field while the account is capped or past 80% of its credits. On a credit refusal of a path that takes x402, agent also says that calls paid one by one with x402 cost no credits. An account whose email is an AI agent’s inbox gets its cap, reminder and 80% warning emails written to the agent, with the pay link. On a free or Explorer key, the message of a refusal for your plan (credits, the rate limit, history, or a feature your plan does not include) says first what stopped for you and since when, in UTC, when it comes back, then what the next plan does for it, with one link. The trial and x402 are in upgrade and agent, not in message:
Read code and the upgrade object in your code, not message: its wording can change. The first cap email of a period opens the same way.

Keyless apps

A keyless refusal of an app that names itself (in its User-Agent, like my-liq-bot/1.0, or in X-Ironflow-Client) also carries an app object with a key link for that app: open key_url and the key page shows which app the key is for. An app called from 25 or more addresses in a UTC day serves users, and apps that serve users need Builder: its app object then has serves_users: true, callers_today and plans_url. This applies to KEY_REQUIRED, KEYLESS_DAILY_LIMIT, keyless RATE_LIMIT_EXCEEDED and STREAM_OPEN_LIMIT; with x402 on, the 402 keeps the same body.
Keyless refusals lead with what a liquidation bot needs: a free key for bots (1,000 credits a day), then “Real-time liquidation streams, the liquidation map and SQL history: Explorer $49/mo ($39/mo yearly)”. Without a key the upgrade object names the free key and has Explorer as its alternative. A keyless refusal on a liquidation endpoint also says “Query liquidations in SQL: hl.liquidations” (POST /v1/query). Every response also carries X-Ironflow-Tier (your tier) and, on a limit a paid plan lifts, X-Ironflow-Upgrade (the upgrade page, on Explorer for keyless callers and free keys). Over a rate limit the API returns 429 Too Many Requests with a Retry-After header in seconds.

Credits

Every call costs credits by what it does. Your plan has credits a day (a free key also has credits a month), and the per-minute rate applies on top. Any other endpoint costs 1. A call refused for bad input costs nothing: an unknown route (404), a missing or invalid parameter (400, /v1/sql included), or a market no catalog lists (an empty answer with a notice). A SQL query that ran and then hit your plan’s time or size limit (QUERY_TIMEOUT, QUERY_TOO_EXPENSIVE) costs its 10. A call that does not fit in what is left is refused and costs nothing; a cheaper call may still fit. A stream opens only with 2 credits left (the open and its first minute). When the credits run out while it is open, it sends a final error event with the refusal and the upgrade object, then closes. A stream reconnects every hour, so one stream around the clock is about 1,460 credits a day. GET /v1/usage shows all of it in one answer that costs no credits and works while you are capped: credits used and left today and this month, when they reset, the cap, the trial call and the cheapest plan that fits (Usage). Credits count per account, all its keys together, over the UTC day (and the UTC month on a free key); keyless credits count per IP over a rolling 24 hours. Free keys used from the same machine (one IP address) share one free quota, daily and monthly, also across accounts. Every keyed response says what the call cost and where you stand: X-RateLimit-Daily-Limit, X-RateLimit-Daily-Remaining and X-RateLimit-Daily-Reset carry the same daily values for older clients. Keyless responses carry X-Credits-Cost, X-Credits-Daily-Limit and X-Credits-Daily-Remaining (over the rolling 24 hours). List answers (trades, liquidations, candles and the other paged reads) and SQL results repeat the headers in the body:
Keyless answers have "window": "rolling_24h" and no resets_at: their credits free up one by one, 24 hours after each was used. From 80% of the day or the month, responses carry a notice (X-Ironflow-Notice, and notice in the body), X-Credits-Remaining (what is left of the quota that runs out first), X-Credits-Reset (when it comes back, in Unix seconds) and Link: <url>; rel="payment" (the upgrade page for the plan that fits, with your account filled in). A JSON answer repeats them as an upgrade object with the plan’s price and buy, the one call that buys it with your key. At 80% of the month a free account gets one email. The first time a free account reaches its monthly credits it keeps its daily credits for 3 more days: answers carry X-Ironflow-Grace-Ends, which still says when it ended on the refusals after it. The grace is once per account, for accounts that never had a trial or a paid plan, and free keys used from one machine share one grace; cap.grace_available in Usage says whether yours still has it. Past the daily credits the API answers 429 DAILY_QUOTA_EXCEEDED (back at 00:00 UTC); past a free key’s monthly credits, 429 MONTHLY_QUOTA_EXCEEDED (back on the 1st at 00:00 UTC). The first refusal of the day or the month also sends the account one email (not while a trial runs). Both carry an upgrade object with resets_at (when the credits come back) and the next plan: Explorer for a free key (25,000 credits a day and no monthly cap), Builder for Explorer, Pro for Builder, and for Pro a note to write to [email protected]. A free key whose account never had a trial gets upgrade.trial first: 7 days of Explorer with the same key and no payment, started with POST /v1/billing/trial. A key on a running trial is pointed at keeping Explorer after it. A free key called from 25 or more different IP addresses in a UTC day serves an app with users, which is commercial use: its refusals offer Builder instead, with upgrade.app_callers_today. 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 picks up within minutes; after 100 refusals in an hour it is the whole wait. Calls paid one by one with x402 cost no credits and keep working.

Per-request query window

/v1/trades and the /v1/analytics/* endpoints limit how much time one request may cover (to - from). This is separate from how far back your history reaches: you can read any date inside your history, a window at a time. The windows are in the table above; with no market filter every tier is held to 4 hours, because an unfiltered read covers every market. /v1/trades for one perp or spot market allows 24 hours keyless and on a free key; a list of markets (market=BTC-PERP,ETH-PERP) gets the window in the table. Exceeding the window returns 400 QUERY_WINDOW_EXCEEDED. Paginate by shifting from and to forward, not by raising limit.

Handling rate limits

Error codes

All errors follow the same shape:

SDK error classes

Both SDKs provide typed error classes: