Download BSE India market data as pandas DataFrames — SENSEX, BSE indices, historical OHLC. Works on AWS Lambda.
Project description
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
License
MIT — data from BSE India.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bse_index_data-1.0.3.tar.gz.
File metadata
- Download URL: bse_index_data-1.0.3.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78fa6961c2ba10ce3dcb7f5e9d5993204331b04f0e1d9df8d41a4ee3df0d768a
|
|
| MD5 |
0f08625b159dbb36b688c4358f2ce8d0
|
|
| BLAKE2b-256 |
a828d690614f273d56ad1a5bfe4f06711c546ba1d03d284a48c005a2e430b09d
|
Provenance
The following attestation bundles were made for bse_index_data-1.0.3.tar.gz:
Publisher:
publish-bse.yml on NikhilSuthar/indian-market-data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bse_index_data-1.0.3.tar.gz -
Subject digest:
78fa6961c2ba10ce3dcb7f5e9d5993204331b04f0e1d9df8d41a4ee3df0d768a - Sigstore transparency entry: 1693758631
- Sigstore integration time:
-
Permalink:
NikhilSuthar/indian-market-data@b98c3b8e84d7d5cc921e7845bd81f68bfeb6dcd2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NikhilSuthar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-bse.yml@b98c3b8e84d7d5cc921e7845bd81f68bfeb6dcd2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bse_index_data-1.0.3-py3-none-any.whl.
File metadata
- Download URL: bse_index_data-1.0.3-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
089ea6c11571920a41f8e51d8a512d5b7a1abd803fecbe195da691d2979cc16a
|
|
| MD5 |
6b56f906ed68cef6b78cf374abc28328
|
|
| BLAKE2b-256 |
7f4032c564bd6c3fedbbe04d382e2fe3e724680c425c39188b391be8cb4bba02
|
Provenance
The following attestation bundles were made for bse_index_data-1.0.3-py3-none-any.whl:
Publisher:
publish-bse.yml on NikhilSuthar/indian-market-data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bse_index_data-1.0.3-py3-none-any.whl -
Subject digest:
089ea6c11571920a41f8e51d8a512d5b7a1abd803fecbe195da691d2979cc16a - Sigstore transparency entry: 1693758875
- Sigstore integration time:
-
Permalink:
NikhilSuthar/indian-market-data@b98c3b8e84d7d5cc921e7845bd81f68bfeb6dcd2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NikhilSuthar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-bse.yml@b98c3b8e84d7d5cc921e7845bd81f68bfeb6dcd2 -
Trigger Event:
workflow_dispatch
-
Statement type: