bse-index-data
BSE India market data as pandas DataFrames.
SENSEX, BSE500, BANKEX and 50+ indices — historical OHLC + live quotes.
Works on AWS Lambda and any cloud environment.
pip install bse-index-data
Part of the indian-market-data monorepo.
Quick Start
from bsedata import bse
# Historical SENSEX OHLC
df = bse.get_index("SENSEX", "2026-01-01", "2026-05-22")
# Historical BSE500
df = bse.get_index("BSE500", "2026-01-01", "2026-05-22")
# All 120+ indices for one date (single API call)
df = bse.get_all_indices("2026-05-22")
# Live SENSEX quote
df = bse.get_live_sensex()
# Download to S3 (Lambda with IAM role)
bse.download_index("SENSEX", "2026-01-01", "2026-05-22",
s3_bucket="my-bucket", s3_prefix="raw/bse/")
# List all 55 supported indices
bse.list_indices()
bse.list_indices(category="Sectoral")
Supported Indices (55)
| Category | Indices |
|---|---|
| Broad Market | SENSEX, SENSEX50, SENSEXNXT50, BSE100, BSE200, BSE500, BSEALLCAP, BSEMIDCAP, BSESMALLCAP, BSE150MIDCAP, BSE250SMALLCAP, BSE400MIDSMALLCAP, BSE250LARGEMIDCAP, BSEMIDCAPSELECT, BSESMALLCAPSELECT, BSELARGECAP |
| Sectoral | BANKEX, BSEAUTO, BSECG, BSECD, BSECDGS, BSEENERGY, BSEFMCG, BSEFINANCE, BSEHC, BSEIT, BSEINDUSTRIALS, BSEMETAL, BSEOILGAS, BSEPOWER, BSEPRIVATEBANKS, BSEPSU, BSEREALTY, BSESERVICES, BSETECK, BSETELECOM, BSEUTILS |
| Thematic | BSECPSE, BSEIPO, BSESMEIPO, BSEGREENEX, BSECARBONEX, BSEINFRA, BSEMANUFACTURING, BHARAT22 |
| Strategy | BSEMOMENTUM, BSEQUALITY, BSEVALUE, BSELOWVOL, BSEDIVSTAB, BSE100ESG |
| Global | DOLLEX30, DOLLEX100, DOLLEX200 |
CLI
bse-index-data list
bse-index-data list --category Sectoral
bse-index-data index --name SENSEX --from 2026-01-01 --to 2026-05-22
bse-index-data all-indices --date 2026-05-22
bse-index-data live
Polars output (optional)
By default every function returns a pandas DataFrame. To get polars DataFrames instead, install the extra and set one environment variable before importing — no code changes needed:
pip install bse-index-data[polars]
import os
os.environ["IMD_DATAFRAME"] = "polars" # set before importing bsedata
from bsedata import bse
df = bse.get_index("SENSEX", "2026-01-01", "2026-05-22")
type(df) # polars.DataFrame
All internal logic stays in pandas; conversion happens only at the final return
step. Leave IMD_DATAFRAME unset (or =pandas) for the default pandas output.
License
MIT — data from BSE India.
Metadata
Release files for bse-index-data 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bse_index_data-1.1.1.tar.gz | 15.1 kB | With provenance | Details for bse_index_data-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bse_index_data-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for bse_index_data-1.1.1-py3-none-any.whl |
Total release size: 32.8 kB
Release files / bse_index_data-1.1.1.tar.gz
| Download URL | bse_index_data-1.1.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a803d70206be819acc839c17d52d37e27bcbcb51c522d240d2d9a8bcf1e05444
|
|
BLAKE2b-256 checksum How to use checksums |
b66da7fb6e93933245cb18231a029b131a5b87c9b747a28482dfd6f1025d4169
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 13, 2026.
Transparency logRelease files / bse_index_data-1.1.1-py3-none-any.whl
| Download URL | bse_index_data-1.1.1-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a38b0a2fae2b3b797d2e6ddfd5d6045ddef8dc4a8a993292ecdaa2bc4e6895ba
|
|
BLAKE2b-256 checksum How to use checksums |
4ee0f5de0d9e33e5f250bc2bf7ece5c5da08c2eadf6c324f6fa8ddc0447d63cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 13, 2026.
Transparency logSecurity for bse-index-data 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bse_index_data-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.