Skip to main content
Failures return { error: { code, message, details? }, meta }. Branch on the stable code; the human-readable message may change.
CodeHTTPMeaning
INVALID_REQUEST400Body or params failed validation (details lists fields).
UNSUPPORTED_TOKEN400Token not resolvable on that chain.
UNSUPPORTED_CHAIN400Chain not supported.
NO_LIQUIDITY404No venue could quote this pair/amount.
QUOTE_EXPIRED410quoteToken past expiry — re-quote.
QUOTE_INVALID400quoteToken malformed or tampered.
RATE_LIMITED429Per-key rate limit exceeded.
UNAUTHORIZED401Missing or invalid API key.
INTERNAL500Unexpected or venue-side error.
{
  "error": {
    "code": "NO_LIQUIDITY",
    "message": "No liquidity available for this pair/amount"
  },
  "meta": { "requestId": "6b50…19e", "version": "2024-01" }
}
Always log the requestId from meta (also in the x-request-id header) — include it when contacting support and we can trace the exact request.