> ## Documentation Index
> Fetch the complete documentation index at: https://docs.centaur.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Exact activity and raw events

> Count messages and trading events, rank the complete matching population, and retrieve raw event evidence.

Use `POST /v2/activity/query` (also `/api/v2/activity/query`) or MCP
`get_activity` with `stats.read`. Select the measure and its clock explicitly:

```json theme={null}
{
  "view": "trader_ranking",
  "measure": "event_count",
  "timeBasis": "event_at",
  "population": { "kind": "all_permitted" },
  "window": { "gte": "2026-09-21T00:00:00Z", "lt": "2026-09-28T00:00:00Z" },
  "eventTypes": ["open", "close"],
  "limit": 1
}
```

* `totals` accepts `measures`, defaulting to `message_count` and `event_count`.
* `trader_ranking` requires one `measure`; `limit` defaults to 20, maximum 50.
* `time_series` requires one `measure`; `interval` is `hour`, `day` (default),
  or `week`, with at most 168 interval spans. `groupBy` is `none` or `trader`.

For message counts, use `message_posted_at`. For event counts, use `event_at`.
Use `per_corpus` when requesting both counts or `message_plus_event_count`.
That combined measure adds messages and events; it does not count distinct actions.
`eventTypes` filters only events and is invalid for message-only requests.

Omit `window` for the last seven days. Exact windows include `gte` and exclude
`lt`, preserve microseconds, and require UTC timestamps. Select known traders
with `population: { "kind": "traders", "traderIds": [101, 102] }`. All matching
permitted groups contribute to totals before ranking and limiting. Message and
signal visibility are checked independently. Ties use ascending trader ID.

Totals, counts and ranked groups come from one read. `matchingGroups` counts
groups with matching activity, including those beyond the requested top-K.
`returnedGroups` counts identities represented in rows; it is zero for totals
and an ungrouped series. Series buckets use UTC calendar boundaries, contain only
activity inside the requested window, and omit empty buckets. A boundary bucket
can therefore be partial. A complete result does not establish ingestion coverage
or provide a historical replay snapshot.

To retrieve every matching event, use `GET /v2/events` or MCP `list_events`,
with the same `window` and raw filters, then exhaust `meta.nextCursor`.
REST takes `window` as a JSON-encoded query parameter; MCP takes an object.
The cursor binds the exact window, filters and role; changing them requires a new
first page. `limit` may change between pages. Do not combine `window` with the
legacy inclusive `startTime` or `endTime` fields.

Raw events require `events.read`; aggregate access does not grant raw evidence.
Raw pages also apply the caller's history allowance and can change between reads.
Later ingestion or corrections can prevent reconciliation with an earlier
aggregate. Existing `get_activity_summary` and inclusive raw-event queries retain
their established behavior.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.