Skip to content

Tool reference

Indian stock price history with daily OHLCV data

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.

What you can ask

Connect DalalOS to Claude or ChatGPT and ask in plain English; the assistant calls get_price_history for you and answers from the figures it returns.

EXAMPLE PROMPTS

  • Give me two years of weekly price history for TCS.
  • Show daily closing prices for Maruti Suzuki over the last six months.
  • Get monthly OHLCV bars for Titan since 2020.

Parameters and response fields

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

See the same data on DalalOS

Public pages that need no sign-in and show data from the same source.

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; paid plans when you need more.