Skip to main content

Response Format

Successful list responses, such as /v4/assets and /v4/tokens, follow this structure. Single-resource lookups return the resource object directly, and /meta endpoints return an array of filter definitions.

Response Fields

  • results - Array of result objects
  • filter - Applied filter (if any)
  • sort - Applied sort configuration
  • pagination - Pagination metadata
    • page - Current page number
    • perPage - Results per page
    • pageCount - Total number of pages
    • resultCount - Total number of results matching the query

Field Nullability and Presence

A field can be null (present with "isin": null) or omitted (not in the object at all). These are different: null means no value is supplied, while an omitted field was not included, for example because query.fields did not select it. null never means 0, false, "", or [].
  • The Nullable column on the Assets and Tokens schema pages says whether each field’s value can be null. It does not say whether the field is always present.
  • A non-null object can still contain null members, such as a metric object with a null val_7d.
  • List results is always an array, [] when nothing matches.
  • /meta describes filtering, not the response schema; support for is_null does not imply a field contains nulls.
  • Populated example responses are not a non-null guarantee. Rely on the Nullable column, and contact team@rwa.xyz if you need a stricter contract.
In clients, check presence and null separately when the difference matters, and use ?? or explicit null checks rather than truthiness, which treats valid 0 and false as missing.

Metric Objects

Numeric metrics on assets and tokens are returned as objects containing the current value plus historical snapshots and deltas:
For the standard token snapshot metrics and token-derived asset snapshot metrics, the current implementation returns null for the entire metric when all four snapshot values are unavailable. Otherwise it builds the object with all ten keys shown above, retaining null for unavailable values rather than omitting those periods. In particular:
  • val can be null even when a historical value is available.
  • A change amount is null if either of its input values is missing.
  • A percentage change is also null when its historical denominator is zero.
Other metrics can have different shapes, and field selection can remove members. Handle both a null parent and null or missing members; do not replace unavailable metrics with zero. These rules do not describe scalar return fields or timeseries points.

Timeseries Responses

Aggregate timeseries endpoints (/v4/assets/aggregates/timeseries, /v4/tokens/aggregates/timeseries) return a different shape. Each result contains a measure descriptor, a group descriptor, and an array of points:
  • measure — the metric being returned (use the Data Catalog to discover available measures)
  • group — what the data is grouped by (e.g., a specific asset, token, or asset class)
  • points — array of [date, value] pairs in chronological order

Error Handling

HTTP Status Codes

Error Response Format

Common Errors

Invalid Filter

Invalid Operator

Rate Limit Exceeded

When you exceed a rate limit, the API returns 429 with headers indicating when you can retry. See Rate Limits for details.