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:

ParameterTypeDescription
index_idintBSE 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:

ColumnDescription
record_idRow identifier
index_idBSE index ID
index_nameIndex name (e.g., “S&P BSE SENSEX”)
dateDate (YYYY-MM-DD)
openOpening value
highDay high
lowDay low
closeClosing value
previous_closePrevious day’s close
absolute_changeClose minus previous close
percentage_changePercentage change from previous close
pePrice-to-Earnings ratio
pbPrice-to-Book ratio
dividend_yieldDividend yield (%)
volumeTrading 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:

ParameterTypeDescription
index_idintBSE 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 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.