Skip to main content

Download BSE India market data as pandas DataFrames — SENSEX, BSE indices, historical OHLC. Works on AWS Lambda.

Project description

bse-index-data

PyPI version Python 3.9+ License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bse_index_data-1.0.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bse_index_data-1.0.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file bse_index_data-1.0.0.tar.gz.

File metadata

  • Download URL: bse_index_data-1.0.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bse_index_data-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c65922c4ee3b5b183da252ffc99b074fac788935aebffc4b91f106a943308dc
MD5 4b5cb636a1a4378c5457fe4d21419091
BLAKE2b-256 35047c970ad9308fe8fd799b7616239011698f56a6d8613618c71a8d9283cc32

See more details on using hashes here.

Provenance

The following attestation bundles were made for bse_index_data-1.0.0.tar.gz:

Publisher: publish-bse.yml on NikhilSuthar/indian-market-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bse_index_data-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bse_index_data-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bse_index_data-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 596b56a3d5cb804517f32bf82c1cb5474e77add577e1d25ce775a1e19aee893b
MD5 322313e72799fe46803928c785e85a8e
BLAKE2b-256 ccd9785a95a51a3be21f38a33180b5166c5d8e15d6ec99194d3e230c8da10146

See more details on using hashes here.

Provenance

The following attestation bundles were made for bse_index_data-1.0.0-py3-none-any.whl:

Publisher: publish-bse.yml on NikhilSuthar/indian-market-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page