TOOL REFERENCE

get_price_history

Daily, weekly or monthly OHLCV bars. This is a read-only tool: it returns raw market data or mechanically-computed ratios, never investment advice.

get_price_history

Daily, weekly or monthly OHLCV bars

USE WHEN

Raw price history for charting or your own return calculations — split/bonus-adjusted on request.

PARAMETERS

get_price_history parameters
NameTypeRequiredDefaultDescription
querystringYesCompany name, symbol, code or ISIN.
daysintegerNo90Lookback window, clamped 1–1825.
adjustedbooleanNofalseRescale pre-event bars for splits/bonuses.
intervalstringNodaily"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.

KEEP 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.