📊 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| stock_name | string | ✅ | Company name or NSE symbol |
| period | enum | ✅ | Time period: 1m, 6m, 1yr, 3yr, 5yr, 10yr, max |
| filter | enum | ✅ | Data metric to chart |
Filter Options
| Filter | Description |
|---|---|
| default | Standard price chart with moving averages |
| price | Price only |
| pe | Price-to-Earnings ratio |
| sm | Sales multiple |
| evebitda | EV/EBITDA ratio |
| ptb | Price-to-Book ratio |
| mcs | Market 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.