Get Policy-Trade Overlap
get_policy_trade_overlapIdentify trades by a politician near an executive order signing affecting the traded sector. Returns overlap details with date distance and match strength.
Instructions
For a single politician, list trades that occurred within a window of days before or after the signing of an executive order affecting the traded sector. Each row contains the trade, the nearestEvent, daysDelta (negative = traded N days before EO signing, positive = traded N days after), matchBasis, and matchCount, plus a summary (totalFlags, totalEstimatedUsd, topSector). Defaults to trades 1-14 days BEFORE signing; same-day trades are always excluded (intraday ordering is unknowable). Unlike get_donor_trade_overlap, executive-branch (exec-) slugs return REAL data here: both congressional and executive trade sources feed the overlap computation. 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 |
|---|---|---|---|
| slug | Yes | Politician URL slug — congressional ("sen-nancy-pelosi", "rep-...") or executive branch ("exec-...") | |
| 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 |