Skip to content
Skip to Content
DalalOSdocs

GET /stocks/{q}/price-history

Price history

OHLC + volume series.

Try it

To test this route you need an API key on a plan that includes the REST API. Create one on the keys page of your dashboard, paste it into the Authorization field of the reference on this page and press Send. Your key stays in this browser tab.

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.

A call can also answer 402, 403, 409 or 429 when a plan's limit is reached; those are described on Plans, credits and errors.

Parameters and response

GET
/stocks/{q}/price-history

Authorization

bearerAuth
headerAuthorizationBearer <token>

DalalOS API key (isk_live_...) as a Bearer token. Create one in the DalalOS dashboard.

Path Parameters

q*string

NSE symbol, ISIN, or BSE code.

Query Parameters

days?integer

Lookback window (1..1825).

Default90
adjusted?boolean

Split/bonus-adjusted closes.

Defaultfalse
interval?string

daily | weekly | monthly.

Default"daily"

Response Body

Success (or success-with-empty when nothing is cached).

application/json
  1. response

Standard DalalOS response envelope. source is a per-tool provenance tag; stale/data_age_seconds describe cache freshness.

as_of?string

ISO date (YYYY-MM-DD) the data refers to: the trade date of the newest row, or the end date of the newest period. Present only on tools that state one; cached_at is the fetch time.

Formatdate
cached_at?string

ISO timestamp the served data was refreshed.

data?unknown

Tool payload (object or array); null on error.

data_age_seconds?number

Present only when cached_at is set.

error?string
reason_code?string

Stable machine-readable category (no_data, not_found, bad_request,...).

resolved_via?string

Present only when a query resolved via a rename/merger alias (rename, merger, demerger_successor; single-company result) or, on /v1/search, an everyday name (common_name: the company it means is the first row and carries the same resolved_via on the row; ordinary matches follow).

source?string
stale*boolean
status*string
Value in"success""error"

What comes back

The top-level fields of data in the saved answer, run on 2026-11-27. The fields can differ for another company or window.

Fields of data
FieldType
isinstring
nse_symbolstring
namestring
daysnumber
adjustedboolean
intervalstring
barslist
countnumber
currencystring

Where the inputs come from

  • q: An NSE symbol, an ISIN or a BSE code. Find one with GET /search.

Errors

The errors every route can return (401, 402, 403, 429 and the rest) are on Plans, credits and errors.

In MCP

The MCP tool get_price_history reads the same data, for an AI assistant that connects over MCP, the Model Context Protocol, instead of REST.

Research data only. Answers are disclosed facts and mechanically computed figures. They are not investment advice.

KEEP EXPLORING