get_aggregates
Query stock market aggregate bars (OHLC) by ticker, date range, and bar size, with options for split adjustment and sorting.
Instructions
Aggregated OHLC bars for a stock over a date range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | Stock symbol (e.g. "AAPL"). Case-sensitive. | |
| multiplier | Yes | Size of the timespan multiplier (e.g. 5 with timespan="minute" => 5-min bars). | |
| timespan | Yes | Bar size: second, minute, hour, day, week, month, quarter, year. | |
| from_ | Yes | Start date "YYYY-MM-DD" or millisecond unix timestamp. | |
| to | Yes | End date "YYYY-MM-DD" or millisecond unix timestamp. | |
| adjusted | No | Whether to adjust for splits. Default true. | |
| sort | No | "asc" or "desc" by timestamp. | asc |
| limit | No | Max bars (Massive cap 50000). Default 50 to keep responses small. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||