Errors and limits

Every error code, when it happens, and whether you pay for it (you never do), plus the rate limits.

Errors#

CodeHTTPChargedWhen
invalid_input400noA parameter is missing or malformed; payment isn't requested
unknown_symbol400noThe symbol isn't NVDA, SPY or TSLA
insufficient_liquidity422noThe pool can't fill this size
token_paused422noThe issuer has paused transfers
multiplier_change_pending422noplan_trade only: a multiplier change activates within the deadline plus 60 s
rate_limited429noMore than 60 requests a minute from your IP
upstream_error502noX Layer RPC or OKX market data failed
payments_unavailable503noNo facilitator is ready; the free catalog still works
try_it_limit429noTry it: more than 3 tries an hour from your IP
try_it_daily_cap429noTry it: 200 tries a day across everyone
demo_wallet_low503noTry it: the demo wallet holds under $1
try_it_disabled404noTry it is switched off on the API

Over MCP the same codes arrive as isError tool results. Settlement only happens after a successful result, so no error is ever charged.

Rate limits#

  • 60 requests per minute per IP, across /v1/* and /mcp together (fixed one-minute window).
  • Every response carries RateLimit-Limit and RateLimit-Remaining; a 429 also carries Retry-After in seconds.
  • Request bodies are limited to 64 kB of JSON.

Payment limits#

  • A signed payment is valid for 120 seconds (maxTimeoutSeconds).
  • Each payment covers one call; its nonce can't be reused.

Freshness#

Market data is cached briefly (OKX books and pool state 2 s, token state 30 s), so identical calls within that window return the same numbers. See How prices are made.

Last updated 25 Sep 2026

Roundlot

Pay-per-call market data and trade plans for tokenized equities on X Layer. Built for OKX Dev Day 2026.

Payments settle on X Layer testnet. Data and trade plans are X Layer mainnet. Not investment advice.