Skip to main content

bsedata

PyPi Version PyPi License PyPi PyVersions PyPi Format

Python library for extracting real-time data from Bombay Stock Exchange (India).

Tests on master branch Tests on dev branch Code coverage Documentation
tests master tests dev code coverage documentation

Introduction

bsedata is a library for collecting real-time data from Bombay Stock Exchange (India). It can be used in various types of projects which require getting live quotes for a given stock or index or build large data sets for data analysis.

The data is as accurate as provided on the BSE website.

Please do not use this application for production usage. It is best used for learning and building application for your own use. For commercial application you better buy a data service.

This library uses MIT license hence liability lies with the user and not the author of the application.

As per India's IT act it is no where mentioned that we cannot scrape a website. It's up to me whether I consume the publicly available data "visually" or through my programme or using some kind of "web reader". As long as data you are scrapping is available in public domain and you are not breaching security and accessing data of private nature with malicious intent, it cannot be termed as illegal.

But it can certainly be termed "unethical" (which is equally bad) since you are damaging the service itself. Hence be prudent about how much stress you cause to the backend. BSE's website is very capable and even they will not mind if someone is scrapping their website for educational purposes.

Features

  • Getting live quotes using stock codes in Python dicttionaries
  • Getting list of top losers
  • Getting list of top gainers
  • Getting quotes for all the indices traded in BSE
  • Helper APIs to check whether a given stock code or index code is correct
  • Getting list of all indices and stocks

Roadmap

  • Get details of an individual index
  • Complete unit test coverage
  • Daily OHLCV data

Dependencies

Usage

Refer the documentation at https://bsedata.readthedocs.io/en/latest/usage.html

Change Log

Refer the documentation at https://bsedata.readthedocs.io/en/latest/chglog.html

License

MIT License

Copyright (c) 2018 - 2024 Shrey Dabhi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for bsedata 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bsedata 0.6.0
File Size Uploaded
bsedata-0.6.0.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bsedata 0.6.0
File Interpreter ABI Platform
bsedata-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / bsedata-0.6.0.tar.gz

Download URL bsedata-0.6.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b347b4674b359972eddf827fc424374dfa1bf499cf6911762c43247cfbfa3f9e
BLAKE2b-256 checksum
How to use checksums
2a992556680b72c6e1d1117940f75e157baaff573a06fd80dc9abd2bd0baa9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / bsedata-0.6.0-py3-none-any.whl

Download URL bsedata-0.6.0-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ba1703e9454634dc65aab61a3600f30307d9e9fbe72313824686b3a9626532e
BLAKE2b-256 checksum
How to use checksums
1204e068ab8ce60a689bf18de1ab61a4d51e38ea161fa0fe447e73417102c9f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page