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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>",
"multiplier": "<multiplier>",
"timespan": "<timespan>",
"from_": "<from_>",
"to": "<to>"
},
"name": "get_aggregates"
}
}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 | |||