# Unusual Trades Chart Data `GET` `https://api.unusualwhales.com/api/congress/unusual-trades/chart-data` Returns trade points (with price context) and SPY daily closes over the requested date range, suitable for plotting congressional trade activity against the broader market. Defaults to the last ~4 months when no range is supplied. This is a premium endpoint. Contact dev@unusualwhales.com to request access. ## Authentication ``` Authorization: Bearer YOUR_API_KEY ``` ## Query Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `date_from` | string | No | Inclusive lower bound on transaction_date (ISO 8601). | | `date_to` | string | No | Inclusive upper bound on transaction_date (ISO 8601). | ## Response (200) | Field | Type | Description | |-------|------|-------------| | `spy_prices` | array[SPY Daily Close] | | | `trades` | array[Unusual Trade Chart Point] | | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/congress/unusual-trades/chart-data" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json" ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("api.unusualwhales.com") headers = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"} conn.request("GET", "/api/congress/unusual-trades/chart-data", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "spy_prices": [ { "close": 0.0, "date": "string" } ], "trades": [ { "amount": "string", "asset_type": "stock", "company_name": "NVIDIA Corp", "filing_date": "string", "id": "string" } ] } ```