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.1.0.tar.gz (14.5 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.1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bse_index_data-1.1.0.tar.gz
  • Upload date:
  • Size: 14.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 029ebb72b5af374c6ac179be6e125916099542e540c730ec74d2ae6ada9652b6
MD5 5d1e3378e2531474a4e20eed7cfc8b1c
BLAKE2b-256 578d24f65bea73cc406cd4b69c9cb9aaf48bfa19412bd90f98434052e9f524fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for bse_index_data-1.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: bse_index_data-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c430b39079d293fc4911c6a1a88c6c6be3278532babf7086743c08fdd492e982
MD5 5f57a97086fb70d666f95b22462d633c
BLAKE2b-256 b8c936d27001ad7823825bab95822d2a6e8b012b07298e82333b3292e62da381

See more details on using hashes here.

Provenance

The following attestation bundles were made for bse_index_data-1.1.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