Skip to content

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 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.
Also available via REST: /stocks/{q}/price-history

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.