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.3.tar.gz (14.0 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.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

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

Hashes for bse_index_data-1.0.3.tar.gz
Algorithm Hash digest
SHA256 78fa6961c2ba10ce3dcb7f5e9d5993204331b04f0e1d9df8d41a4ee3df0d768a
MD5 0f08625b159dbb36b688c4358f2ce8d0
BLAKE2b-256 a828d690614f273d56ad1a5bfe4f06711c546ba1d03d284a48c005a2e430b09d

See more details on using hashes here.

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

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

Hashes for bse_index_data-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 089ea6c11571920a41f8e51d8a512d5b7a1abd803fecbe195da691d2979cc16a
MD5 6b56f906ed68cef6b78cf374abc28328
BLAKE2b-256 7f4032c564bd6c3fedbbe04d382e2fe3e724680c425c39188b391be8cb4bba02

See more details on using hashes here.

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

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