get_histories
Retrieve unified time-series data for an asset, including historical prices and corporate actions like dividends and splits, with configurable date range, interval, and record types.
Instructions
Returns time-series data for an asset in a single unified stream. This endpoint can return historical prices and, optionally, additional history “event” types such as dividends, splits, and capital gains (where available). It is a configurable endpoint that lets you control the date range, interval, included record types, sorting, and page size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matched items returned. | |
| types | No | Record types to include. Supported values: historical_price dividends splits capital_gains All parameters are of type string and are optional. If none are provided, all supported types are returned. | |
| offset | No | Pagination offset (0-based). | |
| symbol | Yes | Asset identifier (ticker symbol). | |
| sort_by | No | Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]: selector - Metric used for sorting (e.g., date). desc - Sorting direction (true for descending, false for ascending). Sortings can be combined using ,. Example: { "selector": "date", "desc": true } | |
| end_date | No | Date range filter (YYYY-MM-DD). Records returned fall within the requested period. | |
| interval | No | Granularity for returned history records. Available values: * 1d - 1 day * 1wk - 1 week * 1mo - 1 month * 3mo - 3 months * 6mo - 6 months * 1y - 1 year | |
| start_date | No | Date range filter (YYYY-MM-DD). Records returned fall within the requested period. |