Price History (OHLCV)
get_price_historyRetrieve daily or weekly OHLCV price history with delivery percentage for any stock. Configure lookback days, detect trends, and run technical analysis; page through truncated results using the returned cursor.
Instructions
Get OHLCV price history as row-per-day format — date, open, high, low, close, volume, delivery %. Supports configurable lookback days and daily/weekly aggregation. Default 365 days (max 2000). Use this for price analysis, trend detection, and technical calculations. IMPORTANT: days is CAPPED at 2000, so a longer request is silently shortened unless you read meta.window. Always check meta.window.truncated before treating the series as the full requested history — when it is true, meta.window.requested_days tells you what you asked for and meta.window.next_cursor gives the end_date to pass on a follow-up call to page further back. For a full multi-year series, page with end_date until truncated is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look back (default 365, max 2000 — larger values are capped, see meta.window.truncated) | |
| 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" — the AGGREGATION of each row, NOT the length of the window. Use `days` for the window (e.g. days:5 for the last 5 sessions). Only end-of-day bars exist: intraday values like "1m"/"5m"/"15m"/"1h" and "monthly" are NOT supported and return an explanatory error. | daily |
| identifier | No | Alias for `symbol`. |