GUM Docs
Open GUM

Trading API

Errors and limits

Every error has the same shape and a stable code; rate limits are per IP and come back in response headers.

Errors

Every error has the same shape. Branch on code; message is for people and its wording can change.

JSON
{
  "error": {
    "code": "invalid_signature",
    "message": "signature was not made by GP8Z… over this quote's `message`"
  }
}
CodeStatusWhat to do
invalid_request400Fix the field message names: a missing value, an amount with too many decimals, a bad cursor.
invalid_address400Use a Solana address, an EVM 0x address or a GUM address. For withdrawals, check destination.
unsupported_account400The address belongs to a Google, Apple, X or passkey account. Trade with a Solana or EVM wallet.
unsupported_chain400Use a chain from GET /v1/chains. USD can’t be withdrawn to BSC or Robinhood.
token_not_found404Find the token’s address with GET /v1/tokens.
quote_failed400No route right now: the amount may be too small, or the token too illiquid. Try again later or change the amount.
quote_expired400Quotes last about 30 seconds. Get a new quote, sign it and submit right away.
invalid_transaction400Send the quote’s transaction unchanged, to the matching endpoint (/swap or /withdraw).
invalid_signature401Sign message with the account in signer.address. See Sign with your wallet.
submit_failed400The trade or withdrawal was rejected, for example for an insufficient balance. Read message.
not_found404Unknown endpoint or id. GET /v1 lists every endpoint.
method_not_allowed405Quotes and submissions are POSTs with a JSON body.
rate_limited429Wait Retry-After seconds.
too_many_streams429Close a live stream, or poll instead.
upstream_unavailable502, 503A GUM service didn’t answer. Retry with backoff.
internal_error500Retry with backoff; report it on Discord if it persists.

A submit that times out or returns a 5xx may still have gone through. Check GET /v1/history/{address} before you submit again, so you don’t trade twice. A quote can only be submitted once.

Rate limits

Limits are per IP address, per minute. Every request counts toward the overall limit, and some also count toward a tighter one:

WhatLimit
All requests120 per minute
Quotes (/swap/quote, /withdraw/quote)30 per minute
Submissions (/swap, /withdraw)20 per minute
Deposit-address lookups10 per minute
Open live streams (/events)10 at a time

Every response reports the limit closest to running out:

HeaderMeaning
RateLimit-LimitRequests allowed in the current window
RateLimit-RemainingRequests left in the current window
RateLimit-ResetSeconds until the window resets
Retry-AfterOn a 429: seconds to wait before retrying

To stay under the limits, stream status instead of polling it, and quote only when you’re about to trade. If you need more, ask on Discord.