Browse documentation

Agents & API

Tiers and limits

Tiers

Every key starts on Starter. Limits rise with the fee-paying volume your key has built and confirmed on chain, and the key moves between tiers by itself. Each limit applies per key.

Partner is for volume of $1,000,000 or more, or by agreement. Its limits are set per key. To agree them, write to hello@oxley.fun.

TierUnlocks atSwap quotes/minSwap builds/minSwap quotes/dayReads/minIntegrator fee cap
StarterNew key301010,0001202%
Builder$50,0001204050,0003002%
Growth$100,000300100150,0006002%
Pro$500,000600200500,0001,2002%
Partner$1,000,000+ or by agreementSet per keySet per keySet per keySet per keySet per key

Bridge limits

Bridge quotes and builds have their own limits, apart from swap calls. Each tier allows about one bridge quote a day for every $10 of its line.

TierBridge quotes/minBridge quotes/dayBridge builds/minBridge builds/day
Starter51,0002200
Builder205,000101,000
Growth4010,000202,000
Pro10050,0005010,000
PartnerSet per keySet per keySet per keySet per key

What counts as volume

Volume is the USD value of transactions built with your key and confirmed on chain, over the trailing 30 days. A build counts once you report its transaction, or follow it with a status call that carries its buildId, and the server has checked the receipt. See Reporting volume.

Only fee-paying volume moves a key between tiers. That is volume oxley charged its own fee on: today, a bridge leg that pays oxley’s bridge fee, and a swap once a Swap fee is set. Every confirmed transaction still shows in your 30-day volume.

  • volume30dUsd All your confirmed volume over 30 days.
  • feePayingVolume30dUsd The part that paid oxley a fee. This is what reaches a tier’s line.

Moving between tiers

  • Moving up A key moves up as soon as its 30-day fee-paying volume reaches a tier’s line. Nothing needs to be asked for: the next call sees the new tier.
  • Moving down A key keeps its highest tier for 30 days after reaching it, then follows its 30-day fee-paying volume.

Quotes, builds and reads

The per-minute limits count five kinds of call separately. Swap quotes, bridge quotes and bridge builds also have a daily limit each, counted from midnight UTC.

KindCalls
Swap quoteGET /v1/swap/price
Swap buildPOST /v1/swap/build
Bridge quotePOST /v1/bridge/quote
Bridge buildPOST /v1/bridge/build
ReadGET /v1/swap/tokens, GET /v1/bridge/config, GET /v1/swap/status, POST /v1/bridge/status, POST /v1/report, GET /v1/me and DELETE /v1/keys/self

Over a limit

A call over a limit is answered with 429 and a retry-after header, the number of seconds to wait. Wait that long and send the call again. This helper does that.

A 429 with error BUSY is a limit shared by every key: the API is answering as many calls as it can for everyone right now. Wait retry-after and try again.

Retry after a 429
async function call(url: string, init: RequestInit, attempts = 3): Promise<Response> {
  for (let attempt = 1; ; attempt++) {
    const response = await fetch(url, init);
    if (response.status !== 429 || attempt >= attempts) return response;
    const seconds = Number(response.headers.get('retry-after')) || 1;
    await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
  }
}

Shared ceiling

On top of your own limits, the API holds every key’s calls to 0x and Enso to one budget a minute for the whole API, and bridge status reads to a ceiling of their own. Swap quotes and builds use 0x, and bridge quotes and builds use Enso. These budgets protect the allowances every key shares, whatever the tiers add up to. A call can be refused with BUSY when a budget is spent even if your own limits have room. The refusal reaches no provider; try again after retry-after.

Check your tier

GET /v1/me returns your tier, its limits, your 30-day volume and fee-paying volume, the next tier and how much fee-paying volume it still needs. It names tiers in lowercase: starter, builder, growth and pro.