Skip to main content

A package for fetching data from BSE

Project description

bsedata

Codacy Badge PyPi Version PyPi License PyPi PyVersions PyPi Format

master dev
TravicCI master TravisCI dev

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

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
  • Historical EOD OHLCV data

Dependencies

Usage

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

Change Log

v0.3.0

New Features:

  • Implement updateScripCodes, getScripCodes and verifyScripCode methods to verify and search scrip codes

Bug Fixes:

  • Fix getIndices method returning empty response
  • Fix getQuote method not returning company name

v0.2.0

New Features:

  • Getting quotes for all the indices traded in BSE

v0.1.0

New Features:

  • Getting live quotes using stock codes
  • Return data in both JSON and python (dict and list) formats
  • Getting list of top losers
  • Getting list of top gainers

License

MIT License

Copyright (c) 2018 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.

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

bsedata-0.3.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

bsedata-0.3.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file bsedata-0.3.1.tar.gz.

File metadata

  • Download URL: bsedata-0.3.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for bsedata-0.3.1.tar.gz
Algorithm Hash digest
SHA256 419dc13a396bf235c8de7880f96a1f3e33ff84669dd7a1ffc16237eba2a74701
MD5 1de4011f831b6c320218cd4f5f0be248
BLAKE2b-256 071ca311ff2297f8d5c3f688fd2191864df573ef3e819cdd51318890dca81601

See more details on using hashes here.

File details

Details for the file bsedata-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: bsedata-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for bsedata-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6de1addd3f88d9fe3b54629139d5555911e84937a8d8bbccdca216484f12ee82
MD5 3022d1ab0a87996bf4270bcb3a64856e
BLAKE2b-256 6bf8c4b24d9f501e78c61ce85d509e03ff1f8cb983b69e3dcb1e34776dc2a038

See more details on using hashes here.

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