Error codes · Limits

Rate limited

Coderate_limited
Status429
If this was an orderMay still complete — resume with the same id
Send it again unchanged?Yes — see What to do
.NET SDKRateLimitedException

The order may still complete

Resume it with the same operation id and the same body. A new operation id can buy the cards a second time.

What it means

Too many requests: in the current window, or running at the same time. The limit is either one Anis staff set on your application or wallet — counting all requests, orders only, or reveals only — or one of Anis’s own protective limits, listed in Errors and limits. On an order, this refusal does not prove nothing was placed: an earlier copy of the same order (a call that timed out, or a retry your HTTP client made) may already have gone through.

What to do

  • Wait for the time in Retry-After when it is present. Otherwise back off: wait 1 second, double the wait after each refusal, add a little random jitter, and never wait more than 30 seconds. The limits are listed in Errors and limits.
  • Then send again. An order is different: resume it with the same operation id and the same body, never a new id. The .NET SDK 1.1.0 returns a rate-limited order as OrderOutcomeUnknown.
  • A refusal for too many calls at the same time clears as soon as one of your own calls ends: run fewer calls in parallel.

Where you can meet it

Example

The body of the refusal. Its type is the address of this page.

{
  "type": "https://developers.anis.ly/errors/rate-limited",
  "title": "Rate limited",
  "status": 429,
  "code": "rate_limited",
  "requestId": "01J9R2K8T4V6XQ0M3B7C5D9E1F"
}