get_option_bars
Retrieve historical OHLCV bar data for option contracts to analyze price movements and trading patterns across customizable timeframes.
Instructions
Retrieves historical bar (OHLCV) data for one or more option contracts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | A comma-separated list of contract symbols with a limit of 100. | |
| timeframe | Yes | The timeframe represented by each bar in aggregation. You can use any of the following values: - `[1-59]Min` or `[1-59]T`, e.g. `5Min` or `5T` creates 5-minute aggregations - `[1-23]Hour` or `[1-23]H`, e.g. `12Hour` or `12H` creates 12-hour aggregations - `1Day` or `1D` creates 1-day aggregations - `1Week` or `1W` creates 1-week aggregations - `[1,2,3,4,6,12]Month` or `[1,2,3,4,6,12]M`, e.g. `3Month` or `3M` creates 3-month aggregations | |
| start | No | The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. Default: the beginning of the current day, but at least 15 minutes ago if the user doesn't have real-time access for the feed. | |
| end | No | The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. Default: the current time if the user has a real-time access for the feed, otherwise 15 minutes before the current time. | |
| limit | No | The maximum number of data points to return in the response page. The API may return less, even if there are more available data points in the requested interval. Always check the `next_page_token` for more pages. The limit applies to the total number of data points, not per symbol! | |
| page_token | No | The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. | |
| sort | No | Sort data in ascending or descending order. | asc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||