Skip to content
Skip to Content
DalalOSdocs

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—One company: NSE symbol, ISIN or BSE code. For a name, call search_stocks first.
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.

The same data over REST, run on 2026-11-27

This tool reads the same data as GET /stocks/{q}/price-history. The call and the answer below were run against the live API.

Price history for RELIANCE
curl -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/stocks/RELIANCE/price-history?days=30&interval=daily&adjusted=false"
{
  "status": "success",
  "data": {
    "isin": "INE002A01018",
    "nse_symbol": "RELIANCE",
    "name": "Reliance Industries Limited",
    "days": 30,
    "adjusted": false,
    "interval": "daily",
    "bars": [
      {
        "date": "2026-10-28",
        "open": 1194.5,
        "high": 1204.3,
        "low": 1156.4,
        "close": 1158,
        "prev_close": 1196.2,
        "last_price": 1158,
        "volume": 21866598,
        "turnover": 25645768869.6,
        "num_trades": 387418,
        "series": "EQ",
        "deliv_qty": 9900037,
        "deliv_pct": 45.27,
        "vwap": 1172.8285,
        "sma_50": 1241.998,
        "sma_200": 1333.319
      },
      {
        "date": "2026-10-29",
        "open": 1159,
        "high": 1182.1,
        "low": 1155.6,
        "close": 1167.4,
        "prev_close": 1158,
        "last_price": 1167.4,
        "volume": 20939623,
        "turnover": 24507816007.7,
        "num_trades": 293758,
        "series": "EQ",
        "deliv_qty": 10271984,
        "deliv_pct": 49.06,
        "vwap": 1170.4039,
        "sma_50": 1239.026,
        "sma_200": 1331.2655
      }
    ],
    "count": 22,
    "currency": "INR"
  },
  "cached_at": "2026-11-27T00:00:00+00:00",
  "source": "nse-bhavcopy",
  "stale": false,
  "error": null,
  "reason_code": null,
  "data_age_seconds": 54005.487,
  "as_of": "2026-11-27"
}

Saved answer. Run on 2026-11-27, answered 200. Lists show their first item in full; the other items and long text are shortened. A call you make now gets the current answer.

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.

Account holders get product-update emails about every two weeks. Turn them off any time.