Price History (OHLCV)
get_price_historyOHLCV price history, one row per bar: date, open, high, low, close, raw_close, volume, delivery_pct, delivered_qty (volume x delivery_pct / 100, within volume/20,000 shares). Daily or weekly bars; default 365 days (max 2000). IMPORTANT: check meta.window before treating the series as complete. days is CAPPED at 2000 (meta.window.truncated), and a window over the ~25k-char result limit keeps the newest bars (meta.truncated). Either way meta.window.has_more: true means older bars exist: pass meta.window.next_cursor as end_date, and page until meta.window.has_more is false.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days to look back (default 365, max 2000) | |
| layout | No | "objects" (default): one object per bar. "rows": one "|"-separated string per bar in `meta.columns` order, about 3x the bars per call; use it for long ranges. | |
| symbol | No | REQUIRED. The stock symbol, e.g. "RELIANCE" or "TCS". | |
| ticker | No | Alias for `symbol`. | |
| end_date | No | Optional YYYY-MM-DD upper bound (inclusive) for the window — the cursor for paging further back through history. Pass the `meta.window.next_cursor` from a truncated response to fetch the preceding page. Omit for the most recent window. | |
| interval | No | Bar size: "daily" (default) or "weekly", NOT the window length (use `days`). Only end-of-day bars exist: intraday ("1m"/"5m"/"1h") and "monthly" return an error. | daily |
| identifier | No | Alias for `symbol`. |