TOOL REFERENCE
get_price_history
Daily, weekly or monthly OHLCV bars. This is a read-only research or operational tool. It does not place trades or issue investment recommendations.
get_price_history
Daily, weekly or monthly OHLCV barsUSE WHEN
Raw price history for charting or your own return calculations — split/bonus-adjusted on request.
PARAMETERS
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Company name, symbol, code or ISIN. |
days | integer | No | 90 | Lookback window, clamped 1–1825. |
adjusted | boolean | No | false | Rescale pre-event bars for splits/bonuses. |
interval | string | No | daily | "daily" | "weekly" | "monthly". |
RESPONSE DATA
- bars — date, open, high, low, close, prev_close, volume, turnover, num_trades, deliv_pct.
- count, adjustments_applied.
NOTES
- Auto-coarsens to weekly bars if a daily request would return more than 750 rows (resampled_reason).
EXAMPLE PROMPTS
- Give me two years of weekly price history for TCS.
/stocks/{q}/price-historyKEEP EXPLORING
Connect your AI to Indian stock market data
Sign in to DalalOS and connect your AI in one line of config. Free to start.