Get Politician P&L
get_politician_pnlEstimate a politician's realized and unrealized profit and loss from disclosed trades, including win rate and per-ticker holdings breakdown by URL slug.
Instructions
Get estimated realized + unrealized profit & loss for a politician. Methodology: each disclosed trade amount range is converted to an estimated share count using the stock's historical market price on the transaction date, then FIFO-matched on shares (realized = (sellPrice - buyPrice) x matched shares); open positions are marked to the current price for unrealized P&L. Covers Congress (sen-/rep-) and executive branch (exec-) officials, identified by URL slug. Response includes a totals object (estimatedRealizedPnl, estimatedUnrealizedPnl, winRate, realizedTrades, tickersTraded) and a byTicker[] breakdown (estimatedShares, avgCostBasis, currentPrice, realizedPnl, unrealizedPnl, unrealizedPnlPercent); byTicker open positions double as the estimated holdings. All figures are estimates (±25-40% from disclosure bracket width).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "get_politician_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Politician URL slug: congressional ("sen-nancy-pelosi", "rep-...") or executive ("exec-trump-donald-j") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |