get_ohlcv
Fetches end-of-day OHLCV candles for a ticker on daily or weekly timeframes, with paging and SQLite storage for full-range pulls. Use it to pull historical price bars for analysis.
Instructions
End-of-day OHLCV candles for one ticker, daily or weekly (weeks dated by Sunday). Paged: pass next_cursor back as cursor, or use store_as with fetch_all for the whole range in one call.
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>"
},
"name": "get_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End, inclusive (YYYY-MM-DD). | |
| limit | No | Default 100. | |
| order | No | Default desc. | |
| start | No | Start, inclusive (YYYY-MM-DD). | |
| append | No | Add rows to an existing store_as table instead of replacing it. | |
| cursor | No | next_cursor from the previous page. | |
| ticker | Yes | e.g. AAPL | |
| store_as | No | Table name: store rows in SQLite, return only a summary. Read with query_data. | |
| fetch_all | No | Follow every page into store_as in this one call. | |
| timeframe | No | Default daily. | |
| adjustment | No | split (default), split_dividend (total return) or raw (as traded). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The tool's result. |