# Max Pain `GET` `https://api.unusualwhales.com/api/stock/{ticker}/max-pain` Returns the max pain for all expirations for the given ticker for the last 120 days ## Authentication ``` Authorization: Bearer YOUR_API_KEY ``` ## Path Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `ticker` | SingleTicker | Yes | A single ticker | ## Query Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `date` | Optional Market Date | No | A trading date in the format of YYYY-MM-DD. This is optional and by default the last trading date. | ## Response (200) | Field | Type | Description | |-------|------|-------------| | `expiry` | Option Contract Expiry | The contract expiry date in ISO format. | | `max_pain` | string | The max pain for the given expiry | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/stock/{ticker}/max-pain" \ -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/stock/{ticker}/max-pain", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": [ { "expiry": "2024-03-04", "max_pain": "473" }, { "expiry": "2024-03-05", "max_pain": "475" } ], "date": "2024-03-04" } ```