BSE Indices

BSE index API endpoints for listings, historical data, and rolling returns.

All BSE index endpoints are under /api/bse/ and require the x-api-token header.

List All Categories

Returns BSE index categories.

  • Method: GET
  • URL: /api/bse/list_all_categories
  • Auth: Required
curl -s https://api.indvested.com/api/bse/list_all_categories \
  -H "x-api-token: YOUR_TOKEN"
[
  {
    "recordID": 1,
    "name": "Market Cap/Broad",
    "updatedAt": "2026-02-17T10:00:00Z"
  }
]

List All Indices

Returns a lite listing of all BSE indices with metadata. Pre-computed and cached.

  • Method: GET
  • URL: /api/bse/list_all_indices
  • Auth: Required
curl -s https://api.indvested.com/api/bse/list_all_indices \
  -H "x-api-token: YOUR_TOKEN"

Get Historical Data

Returns historical OHLC data for a single BSE index as a streaming CSV download. Includes valuation metrics (P/E, P/B, dividend yield) where available.

  • Method: GET
  • URL: /api/bse/get_historical_data/<index_id>
  • Auth: Required

URL parameters:

Parameter Type Description
index_id int BSE index ID (from list_all_indices)
curl -s https://api.indvested.com/api/bse/get_historical_data/1 \
  -H "x-api-token: YOUR_TOKEN" \
  -o sensex_historical.csv

CSV columns:

Column Description
record_id Row identifier
index_id BSE index ID
index_name Index name (e.g., “S&P BSE SENSEX”)
date Date (YYYY-MM-DD)
open Opening value
high Day high
low Day low
close Closing value
previous_close Previous day’s close
absolute_change Close minus previous close
percentage_change Percentage change from previous close
pe Price-to-Earnings ratio
pb Price-to-Book ratio
dividend_yield Dividend yield (%)
volume Trading volume

Get Rolling Return Data

Returns rolling return data, SIP CAGR simulation metrics, and present level metrics (ATH, 52-week range, 200DMA) for a single index. Pre-computed and cached.

  • Method: GET
  • URL: /api/bse/get_rolling_return_data/<index_id>
  • Auth: Required

URL parameters:

Parameter Type Description
index_id int BSE index ID
curl -s https://api.indvested.com/api/bse/get_rolling_return_data/1 \
  -H "x-api-token: YOUR_TOKEN"

Response includes rolling return summary by duration (1Y, 3Y, 5Y, 7Y, 10Y, 12Y, 15Y) with meanReturn, bestReturn, worstReturn, percentOfWindowsWithPositiveReturn, and present level metrics.


Get Latest Historic Data

Returns the latest OHLC data for the most popular BSE indices, including 1-day direction, percentage change, and previous close.

  • Method: GET
  • URL: /api/bse/latest_historic_data
  • Auth: Required
curl -s https://api.indvested.com/api/bse/latest_historic_data \
  -H "x-api-token: YOUR_TOKEN"

Returns an array of index objects with index, category, date, openValue, highValue, lowValue, closeValue, previousClose, absoluteChange, percentageChange, and oneDayChange.


Get Present Index Status Metrics

Returns rolling return summaries and present level metrics for all BSE indices.

  • Method: GET
  • URL: /api/bse/get_present_index_status_metrics
  • Auth: Required
curl -s https://api.indvested.com/api/bse/get_present_index_status_metrics \
  -H "x-api-token: YOUR_TOKEN"

Returns an array of index objects, each containing rolling return summary by duration and present level metrics.