BseIndiaApi
An Unofficial Python Api for BSE India stock exchange.
Python version: >= 3.8
Install with PIP
pip install -U bse
Documentation
https://bennythadikaran.github.io/BseIndiaApi/
You might like stock-news built using BseIndiaApi. It helps to keep track of corporate announcements and actions on your portfolio.
Usage
Using with statement
from bse import BSE
with BSE(download_folder='./') as bse:
scripCode = bse.getScripCode('tcs') # 532540 bse scrip code
data = bse.actions(scripcode=scripCode)
ohlc = bse.quote(scripCode) # Open, High, Low, LTP
or
from bse import BSE
from bse.constants import INDEX
bse = BSE(download_folder='./')
code = bse.getScripCode('tcs') # 532540 bse scrip code
gainers = bse.gainers(by='index', name=INDEX.BSE500)
bse.exit() # close the request session
Sample Responses
src/samples contain the sample responses from the various methods in JSON format.
The files are named after the corresponding method in src/BSE.py. Use it to understand the API response structure.
Example Folder
src/examples contains scripts that use the BSE.py.
To use the scripts download or clone the repo.
- get_all_announcements.py: This file demonstrates how to paginate and get all announcements using
BSE.announcements. It has step by step explanation of code. - actions.py:
py actions.py infyto print the recent corporate actions. Nothing more. - advances.py:
py advances.pyto print the advance decline ratios for various bse Indexes.
You may also like my other repo: Stock-News - It uses BseIndiaApi and displays stock announcements, dividend, bonus/splits and upcoming results etc for your portfolio or watchlist stocks.
Metadata
Release files for bse 3.3.4
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-3.3.4.tar.gz | 29.8 kB | With provenance | Details for bse-3.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bse-3.3.4-py3-none-any.whl | Python 3 | none | any | Details for bse-3.3.4-py3-none-any.whl |
Total release size: 58.9 kB
Release files / bse-3.3.4.tar.gz
| Download URL | bse-3.3.4.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc5da2d1a0e52b2d7858524d50034d83b64bb47d5bf8397a646503d0b957ef13
|
|
BLAKE2b-256 checksum How to use checksums |
4ba43daba6911d56a61cbf4bbacf9ecf906116841cbd6478d16d55c0beec549c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / bse-3.3.4-py3-none-any.whl
| Download URL | bse-3.3.4-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddff2312cdd37247622da4ecae37fbdb1986fca0a8d8a3aefe12af2965fe915b
|
|
BLAKE2b-256 checksum How to use checksums |
cf803ef2b692ad69b0767209022fe5df93434ebcdf8d50321cb7dab74c2522b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logSecurity for bse 3.3.4
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-3.3.4.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 Oct 17, 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.