Skip to main content

A utility for crawling historical and Real-time Quotes of dse

Project description

Bdshare

Documentation Status

A utility for crawling historical and Real-time data from stock exchanges of Bangladesh. At present this utility can collect data from Dhaka and Chittagong stock exchange.

Contents

Quickstart

Installation

$ pip install bdshare

Example Use

Get last or current trading data

from bdshare import get_current_trade_data

df = get_current_trade_data()
print(df.to_string())
from bdshare import get_current_trade_data

df = get_current_trade_data('GP') # get specific instrument data
print(df.to_string())

Get historical data

from bdshare import get_hist_data

df = get_hist_data('2020-03-01','2020-03-02') # get all instrument data
print(df.to_string())

or

from bdshare import get_hist_data

df = get_hist_data('2020-03-01','2020-03-02','ACI') # get specific instrument data
print(df.to_string())

TODO's and Road Map:

  • refine logic for parameters
  • examples;
  • DSE daily data and historical data crawling
  • DSE news,p/e crawling
  • Add CSE support for last trading price
  • Add P/E and historical data scraping form CSE

Documentation

Complete documentation can be found at Readthedocs .

Contributing to this project

Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.

Change log

[0.1.3] - 2020-08-20

Added

  • html5lib
  • added get params

Changed

  • post request to get

Removed

[0.1.2] - 2020-05-21

Added

  • modified index declaration

Changed

Removed

[0.1.1] - 2020-05-20

Added

  • modified index declaration

Changed

Removed

[0.1.0] - 2020-04-08

Added

  • added git tag
  • VERSION.txt

Changed

  • setup.py
  • HISTORY.md to CHANGELOG.md

Removed

[0.0.1] - 2020-04-06

Added

  • get_hist_data(), get_current_trade_data()
  • HISTORY.md

Changed

Removed

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

bdshare-0.1.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

bdshare-0.1.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file bdshare-0.1.3.tar.gz.

File metadata

  • Download URL: bdshare-0.1.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

File hashes

Hashes for bdshare-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c08a9ed0c913cb4988283cf75c9b045a109379756d6f9830bf0d4f6c55458448
MD5 08425bfb61b99cd7e7001dd5c9751126
BLAKE2b-256 2d92a74448d30985548dfd1de450263bf136da3374cf9e7b1e49eb5617955fd2

See more details on using hashes here.

File details

Details for the file bdshare-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: bdshare-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

File hashes

Hashes for bdshare-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4f98021471a13ab6c54367fa028b9df28306555cff8e1d0173b934d74cc94d05
MD5 84896ed4fffb6205f8512aee5236c9a9
BLAKE2b-256 a2da601c6c679b348aa0d9c01165a7bf4344e679ddc23fe984733880b67b26cb

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