# Option Chains `GET` `https://api.unusualwhales.com/api/stock/{ticker}/option-chains` Returns all option symbols for the given ticker that were present at the given day. If no date is given, returns data for the current/last market day. You can use the following regex to extract underlying ticker, option type, expiry & strike: `^(?[\w]*)(?(\d{2})(\d{2})(\d{2}))(?[PC])(?\d{8})$` Keep in mind that the strike needs to be divided by 1,000. ## 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. | | `greeks` | boolean | No | When true, return an enriched row per contract (strike, expiry, type, NBBO, IV, OI, volume, delta, gamma, theta, vega, rho, last_tape_time) instead of the default array of option-symbol strings. | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/stock/{ticker}/option-chains" \ -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-chains", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": [ "AAPL230908C00175000", "AAPL231020C00185000", "AAPL230908C00180000", "AAPL230908C00182500", "AAPL230908C00185000", "AAPL230908C00187500", "AAPL230908P00172500", "AAPL230908P00175000", "AAPL230908P00177500", "AAPL230908C00177500", "AAPL230915C00177500", "AAPL230915C00180000", "AAPL230915C00185000", "AAPL230915C00187500", "AAPL230915C00192500", "AAPL230915C00195000", "AAPL230915C00200000" ] } ```