📊 Historical & Financials

Historical Price Data

Fetch historical price charts with multiple metrics and time periods. Includes price, 50-DMA, 200-DMA, and volume data.

Parameters

ParameterTypeRequiredDescription
stock_namestring✅Company name or NSE symbol
periodenum✅Time period: 1m, 6m, 1yr, 3yr, 5yr, 10yr, max
filterenum✅Data metric to chart

Filter Options

FilterDescription
defaultStandard price chart with moving averages
pricePrice only
pePrice-to-Earnings ratio
smSales multiple
evebitdaEV/EBITDA ratio
ptbPrice-to-Book ratio
mcsMarket Cap / Sales

Response

Returns an array of datasets, each with metric name, label, and time-series values:

{
  "datasets": [
    {
      "metric": "Price",
      "label": "Price on NSE",
      "values": [["2024-06-27", "3934.15"], ...],
      "meta": {"is_weekly": false}
    },
    {
      "metric": "DMA50",
      "label": "50 DMA",
      "values": [["2024-06-27", "3856.07"], ...]
    },
    {
      "metric": "Volume",
      "label": "Volume",
      "values": [["2024-06-27", 4727409, {"delivery": null}], ...]
    }
  ]
}

Example

GET /historical_data?stock_name=TATAMOTORS&period=1yr&filter=price
get/historical_data

Request

  • Base URL: https://analyst.indianapi.in (the document declares no server; this is the origin it was published from)
  • URL: https://analyst.indianapi.in/historical_data
  • Auth: API key in header X-API-Key

Query parameters

stock_namestring required
period'1m' | '6m' | '1yr' | '3yr' | '5yr' | '10yr' | 'max' required
filter'default' | 'price' | 'pe' | 'sm' | 'evebitda' | 'ptb' | 'mcs' required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.