Authorization: Bearer ...: an AgentDoor agt_ token, an MCP or ChatGPT login, or a web app session. Every token that belongs to the same Fere account shares one budget. People on the same office or mobile network do not use up each other’s budget.
The default can change. When you are limited,
Retry-After tells you how long to wait. Trust that number over the table.
Tool calls made from inside a Fere code sandbox have their own budget, so they do not use up the account’s budget.
rate_limited: wait, then continue
HTTP 429. The response includes Retry-After, a whole number of seconds (at least 1) until the next window starts.
What to do:
- Wait at least
Retry-Afterseconds, then send the same request again. Retry once, not in a tight loop. - Do not register a new AgentDoor key or sign in again to get a new budget. Every token for the account shares the same budget.
- If you poll prices, positions or PnL, poll less often.
Limits on wallet reads
Three wallet reads are expensive to serve, so each has its own budget per account, on top of the 600-a-minute account limit. Each budget has three limits: how many requests can be in flight at once, how many per minute, and how many per hour. The per-minute and per-hour counts are shared across Fere’s servers. The in-flight limit is counted on each server, so an account can sometimes have more requests in flight than the table shows. The/agent/{agent_id}/... routes below are the ones the Fere app uses. They aren’t in the public API reference; from your own client, use GET /v1/holdings.
The MCP holdings tool calls
/v1/holdings, so it uses the holdings budget. Every token for the account shares each budget, as with the account limit. The defaults can change; trust Retry-After over the table.
- Minute and hour are clock windows. Every request counts, including ones refused for being over the in-flight limit.
- In flight: a request over the in-flight limit waits up to 25 seconds for an earlier one to finish, then runs. If none finishes in time, or too many of your requests are already waiting, it gets a 429 with
Retry-After: 1. - Shared holdings limit: holdings reads also share a limit across all accounts. When it is full, a request waits within the same 25 seconds, and the next free slot goes to the account with the fewest holdings reads running, so a small request is not stuck behind a large one. If no slot frees in time, it gets the same 429 with
"scope": "global"indetails. This is rare and not caused by your own traffic.
rate_limited on a wallet read
HTTP 429, the same rate_limited error as the account limit. details names the budget and the limit that was hit:
window is in_flight, minute or hour, and limit is that window’s limit. An in_flight 429 also has scope: user when your own requests filled your in-flight limit, global when the shared holdings limit was full. The response carries Retry-After, RateLimit-Limit (the same limit), RateLimit-Remaining (0) and RateLimit-Reset.
What to do:
- Wait at least
Retry-Afterseconds, then send the same request once. Anhour429 can ask you to wait many minutes; do not retry sooner. - Don’t fire many reads at once. Send at most the in-flight limit in parallel, and start the next one when one returns.
- Poll holdings and PnL history less often. Re-reading PnL history every few seconds will use up the hourly budget.
- Holdings are kept for up to 20 seconds, so polling more often than that returns the same result. After your own trade, transfer or deposit through Fere, the next read is fresh. The same holds once Fere has recorded a deposit to, or a send from, your Fere Wallet or a strategy’s cash wallet, even one made outside Fere; a wallet still waiting for its first deposit is never cached. To force a fresh read at any other time (for example before Fere has recorded money you sent from elsewhere), add
event=wallet-refreshto the holdings request; it still counts against theholdingsbudget.
A 429 with a plain message body
The edge in front of the API also limits requests per client IP, whether or not they are signed in. It is set well above normal use and is there to stop floods. When you hit it, the 429 has a different body:
Retry-After is still there, in whole seconds. Treat this response the same way as rate_limited: wait at least Retry-After seconds, then retry once.
These responses also carry RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, X-RateLimit-Limit-Minute and X-RateLimit-Remaining-Minute. They describe the IP’s budget, not the account’s, and they can appear on successful responses too. On an account rate_limited response you may get two of each RateLimit-* header, one for the IP and one for the account, often joined into one value such as 600, 600. Retry-After is only ever sent once. Use it to decide when to retry, and read detail.error.code only when the body has one.
Hyperliquid is busy
This is not your account limit. When Hyperliquid rate-limits a perp read, or the read times out, the API returns HTTP 503 withRetry-After: 2. It does not return 502, and it does not return your account’s 429.
detail.error.code stays upstream_error. details.detail.code is hyperliquid_unavailable, which is how you tell this apart from another upstream failure. The orders you already received are unchanged. A 503 does not cancel them.
What to do: wait at least Retry-After seconds, then send the same request once. Do not retry in a tight loop. Polling open orders faster while Hyperliquid is refusing reads makes the pause longer.
GET /v1/perp/markets is cached for 30 seconds. A successful list is reused for that long, including while Hyperliquid is rate-limiting. A failed read is not cached, so the next request tries Hyperliquid again and returns this same 503 when the venue is still unavailable.
Opening and closing perps
Opening or closing a perp position reads your position and the price from Hyperliquid before the order is sent. If Hyperliquid rate-limits one of those reads, returns a server error, or the connection drops, Fere tries the read again for you, up to three times in a few seconds. You don’t need to do anything, and most of these trades go through. The order itself is sent only once. Fere never resends it, because a resent order could fill twice. If the open or close still fails, check your positions before you try again: a failure while reading means no order was sent, but a failure while sending can mean the order already reached Hyperliquid.When a perp or spot action fails on Hyperliquid
A perp open, close or modify, a take-profit or stop-loss attach, or a spot buy or sell runs as a task. If Hyperliquid answers it with an HTTP error, the failure event (message and error_message, shown in Activity and sent on GET /v1/notifications/stream) says what happened in one sentence:
The task responses do not carry these messages.
wait=true returns the task’s id and final status only, and GET /v1/tasks/{task_id} always reports “Something went wrong, please try again!” as a failed task’s error, whatever the cause. Read the failure event for the reason. If you can’t, check your positions before you send a failed perp or spot action again.
PnL history is already loading
GET /agent/{agent_id}/pnl/history can return HTTP 429 with Retry-After: 1 and the message “PnL history is already loading for this agent. Retry shortly.” The API reports this as rate_limited. It is not the 600-request account budget, and the body does not include limit_per_minute.
One agent can have three history builds at once: the open page, a refresh, and one other filter. A fourth build is refused. A second build of the same page, while that page is still loading, is refused too.
What to do: wait Retry-After seconds, then send the same request again. Other agents on the account are not affected.
Schedule limits
A schedule runs a chat query or strategy for you on a timer, for example “every morning at 8, summarise BTC news”. You create one from chat in the Fere app; the MCP and the public API can’t create schedules. Each account can have a limited number of schedules running at once.
Need more? Contact us and we can raise the limit for your account.
Each run of a schedule uses credits, so starting a schedule also needs enough credits for one run. The same two checks apply whenever a schedule starts: when you create it, resume it or activate it.
schedule_limit_reached: stop one first
The account already has as many running schedules as its limit allows. Chat says: “You can have up to 5 running schedules. Stop one before starting another.”
What to do: stop a schedule you no longer need, then try again. Retrying without stopping one returns the same error.
insufficient_credits: not enough credits
The account does not hold enough credits for one run of the schedule.
What to do: contact us for more credits, then try again.
If the account runs out of credits later, Fere stops all its schedules, and runs that were already waiting to start do not run. Once you have credits again, resume the schedules you want.
Sign-up and token limits
The AgentDoor sign-up and token routes (/v1/auth/register, /v1/auth/verify and /v1/auth/token) have their own limit, per client IP, because no account exists yet: register and verify share 10 per minute and 50 per hour, and token allows 120 per minute. See Agent API authentication.
