price_history: Price history

Daily closing prices of a company or an index (Nifty 50, Sensex, sector indices) between two dates or for the last N days (end of day only).

What it returns

Daily closing prices, with traded volume where on record, for one company or index over the dates you name.

Inputs

InputRequiredNote
symbolyesNSE ticker (e.g. TCS), BSE code (e.g. 500325), or an index code or name (NIF50, "NIFTY 50", Sensex); up to 20 characters
fromnoYYYY-MM-DD
tonoYYYY-MM-DD
daysnothe last N calendar days up to to (default 90); ignored when from is given; 1..1830
formatnojson (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; one of json, csv; default "json"

Example questions

Related tools

Data freshness

Prices and indicators are end of day, as of the last close. Company figures are as filed, each with its date. There are no live prices.

More