Developers

Rate limits

How Grvt limits request rates, how to read your limit from each response, and how the SDKs handle it.

On this page

Grvt limits how often you can call the API. Every HTTP response says which limit applied and how much of it is left, so read it from there instead of hard-coding numbers.

Reading your limit

  • X-RateLimit-Limit and X-RateLimit-Remaining on each HTTP response show the limit that applied.
  • Over the limit, a call fails with error 1006 (HTTP 429). Wait, then retry.

What your limit depends on

  • Account tier. Limits follow your main account's tier, returned by funding_account_summary. Calls without a session get tier 1.
  • IP address, for market data. Market-data limits are per IP. ticker calls for stable funding perps (_SFP instruments) can have their own per-IP budget, shared by all stable funding perps.

Staying under the limit

  • Subscribe to a stream instead of polling for prices.
  • Use the SDK: it retries reads after a 1006 with backoff (3 tries, within the call timeout of 30 s by default, login included). Writes are never retried, so you see the error (What the SDK retries). Each retry shows up in on_event.

Not documented yet

Exact numbers per endpoint and tier, and WebSocket limits (messages per second, subscriptions and sockets per account), including whether WebSocket and HTTP order entry share a budget. Until then, go by the response headers.

esc

↑ ↓ move↵ open⇧↵ open .mdTry an error code like 2002

Keyboard shortcuts

⌘ K
Search the docs
/
Search
l
Next code language (Python → TypeScript → Go → Rust → curl → WebSocket)
j / k
Next / previous page
t
Light / dark theme
?
This help
Esc
Close dialogs and drawers