- Selector shortcuts — top-level arguments like
tokenAddressthat provide a convenient shorthand for common filters whereargument — a nested filter object that supports the full range of operators and arbitrary dimension filtering
Selector Shortcuts
Selectors are convenience arguments on Cube fields that map to commonwhere filter patterns. They accept the same filter input types as where fields (e.g., StringFilter with is, in, like, etc.), not plain strings.
These two queries are equivalent:
- With Selector
- With where Filter
The where Argument
The where argument accepts a nested input object that mirrors the Cube’s dimension hierarchy. Each leaf field maps to a filter primitive with typed operators.
Structure
where, they are combined with AND logic.
Filter Primitive Types
Every leaf dimension maps to one of these filter input types:StringFilter
For text fields like addresses, hashes, protocol names.IntFilter / FloatFilter
For numeric fields like amounts, prices, counts.DateTimeFilter
For timestamp fields. Values are ISO 8601 strings.after/before are exclusive (strict inequality). since/till are inclusive. between takes a two-element array and is inclusive on both ends.BoolFilter
For boolean fields.OR Logic with any
By default, all conditions in where are combined with AND. To express OR logic, use the any array field — each element is a full filter object, and records matching any of them are returned.
any can be combined with other top-level where fields. The any conditions are OR’d together, then AND’d with any sibling conditions.Default Filters
Some Cubes apply default filters automatically. You can override them by explicitly setting the filter in yourwhere clause.
To include suspect trades, explicitly set the filter:
IsSuspect in where — the default false still applies. To query all trades regardless of suspect status, use OR:
Combining Selectors and where
Selectors and where filters are combined with AND. This lets you use selectors for the primary entity and where for additional refinement:
Next Steps
Ordering & Pagination
Sort results and page through data with
orderBy and limit.Metrics & Aggregation
Aggregate filtered data with count, sum, avg, min, max, uniq.

