# Volume & OI per Expiry `GET` `https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry` Returns the total volume and open interest per expiry for the given ticker. ## 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 | |-------|------|-------------| | `expires` | Stock Expiry | The expiry of an options cycle as an ISO date. | | `oi` | Stock Open Interest | The sum of open interest for all contracts. | | `volume` | Stock Options Volume | The sum of volume for all contracts. | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry" \ -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}/option/volume-oi-expiry", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": [ { "expires": "2023-09-08", "oi": 451630, "volume": 962332 }, { "expires": "2023-09-15", "oi": 1422982, "volume": 631608 }, { "expires": "2023-09-22", "oi": 144938, "volume": 111177 }, { "expires": "2023-09-29", "oi": 144629, "volume": 78604 }, { "expires": "2023-10-06", "oi": 38090, "volume": 42405 }, { "expires": "2023-10-13", "oi": 14371, "volume": 18694 }, { "expires": "2023-10-20", "oi": 837270, "volume": 244837 }, { "expires": "2023-10-27", "oi": 0, "volume": 6004 }, { "expires": "2023-11-17", "oi": 524204, "volume": 62599 }, { "expires": "2023-12-15", "oi": 723533, "volume": 72616 }, { "expires": "2024-01-19", "oi": 1658337, "volume": 98483 }, { "expires": "2024-02-16", "oi": 34994, "volume": 8947 }, { "expires": "2024-03-15", "oi": 304973, "volume": 22281 }, { "expires": "2024-04-19", "oi": 21399, "volume": 5905 }, { "expires": "2024-06-21", "oi": 560682, "volume": 23783 }, { "expires": "2024-09-20", "oi": 122030, "volume": 17994 }, { "expires": "2024-12-20", "oi": 63646, "volume": 5170 }, { "expires": "2025-01-17", "oi": 472809, "volume": 9144 }, { "expires": "2025-06-20", "oi": 89229, "volume": 3194 }, { "expires": "2025-12-19", "oi": 116365, "volume": 5856 } ] } ```