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 objectsfilter- Applied filter (if any)sort- Applied sort configurationpagination- Pagination metadatapage- Current page numberperPage- Results per pagepageCount- Total number of pagesresultCount- 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
resultsis always an array,[]when nothing matches. /metadescribes filtering, not the response schema; support foris_nulldoes 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.
?? 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:
valcan benulleven when a historical value is available.- A change amount is
nullif either of its input values is missing. - A percentage change is also
nullwhen its historical denominator is zero.
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 returns429 with headers indicating when you can retry. See Rate Limits for details.