Option bars
options_barsFetch historical OHLCV bars for option contracts by OCC symbol, including premium and volume, with timeframe and date-window controls; large results return a result_id for SQL querying.
Instructions
Historical OHLCV bars for option contracts by OCC symbol (premium per share in USD, volume in contracts). timeframe default 1d; window by start/end or lookback (default P30D). Large results are stored, not shown: you get a result_id to query with results_query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end (same format). Default: now (Alpaca's latest available). | |
| sort | No | Time order of the rows: asc (oldest first, default) or desc (newest first). | asc |
| start | No | Window start: ISO date (00:00 UTC) or datetime with a zone, e.g. 2026-01-02T14:30:00Z. | |
| lookback | No | Window length back from end as an ISO-8601 duration (P5D, P1Y, PT20M); only when start is omitted. Default P30D. | |
| timeframe | No | Bar size: Nmin (1-59), Nh (1-23), 1d, 1w or Nmo (1,2,3,4,6,12). | 1d |
| page_token | No | Continue a truncated fetch: the page_token from the previous response's pagination. | |
| occ_symbols | Yes | OCC option symbols, e.g. ["AAPL250117C00150000"] (1-100). |