aggregates
Summary stats over the filtered set: totals, branch split, most-active officials, top tickers bought/sold (per individual stock), top sectors bought/sold, potential conflict count, date range. Accepts the same branch/role/since/until/type/ticker filters as search — pass branch=congress + role=Senate + since=YYYY-MM-DD to scope. Use this BEFORE paginating search_trades when you only need ranked counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Chamber (Senate/House) or title substring | |
| type | No | Direction: "buy", "sell", or "exchange" (case-insensitive) | |
| since | No | ||
| until | No | ||
| branch | No | Either "congress" or "executive" (case-insensitive) | |
| ticker | No |