Get Policy-Trade Leaderboard
get_policy_trade_leaderboardRank politicians by trades near executive order signings in sectors the orders affect, with flagged trade count and total estimated USD.
Instructions
Rank politicians (Congress + executive branch) by trades that occurred near executive-order signings in sectors the orders affect. Each row includes the politician, flaggedTradeCount, totalEstimatedUsd, topSector, and an exampleEvent. Use for "who trades most around policy activity" style questions. Defaults to the same "traded 1-14 days before signing" lens as get_policy_trade_overlap; same-day trades are always excluded. IMPORTANT: matches are sector-level co-occurrence — the official traded a stock in a sector the executive order affects, within a window of its signing date. Sector matches are broad and many trades will coincide with policy activity by chance; a match is a starting point for research, not evidence of foreknowledge. The matchBasis field describes match strength only ('sector' = broad sector match), never culpability, and matchCount shows how many EOs matched in the window (a noise indicator).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Ranking order: 'usd' (default — estimated USD value) or 'count' (flagged-trade count) | |
| limit | No | Maximum results to return (default: 50, max: 100) | |
| offset | No | Pagination offset (default: 0) | |
| window | No | Match window in days around the EO signing date (default: 14, max: 30) | |
| direction | No | Which side of the signing date to include: 'before' (default), 'after', or 'both' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |