Skip to main content

This is a tool to download stock market data of Dhaka Stock Exchange.

Project description

Description

This is a Python library based on beautifulsoup4 and pandas to download price data and fundamental data of companies from
Dhaka Stock Exchange.
This can assist you to create further analyses based on fundamental and price history data.

Installation

pip install dse-data-loader

Usage

Downloading historical price data of a single stock-

from dse_data_loader import PriceData
loader = PriceData()

loader.save_history_csv('ACI', file_name='ACI_history.csv')

The above code will create a file named- 'ACI_history.csv'. It'll contain historical price data for ACI Limited. 'ACI' is the stock symbol.

Downloading current price data of all listed companies in DSE-

from dse_data_loader import PriceData
loader = PriceData()

loader.save_current_csv(file_name='current_data.csv')

The above code will create a file named- 'ACI_history.csv' in the current folder. It'll contain current price data for all symbols.

Downloading fundamental data for a list of companies available in DSE-

from dse_data_loader import FundamentalData
loader = FundamentalData()

loader.save_company_data(['ACI', 'GP', 'WALTONHIL'], path='company_info')

The above code will create two files named 'company_data.csv' & 'financial_data.csv' in the 'company_info' folder relative to current directory. The file named company_data.csv contains the fundamental data of ACI Limited, GP and Walton BD for the current year and financial_data.csv contains year-wise fundamental data according to DSE website.

This is the minimal documentation. It'll be improved continuously (hopefully!).

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

dse-data-loader-0.0.31.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

dse_data_loader-0.0.31-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file dse-data-loader-0.0.31.tar.gz.

File metadata

  • Download URL: dse-data-loader-0.0.31.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for dse-data-loader-0.0.31.tar.gz
Algorithm Hash digest
SHA256 e135497ba3c06a5d4874f81c6cffba9dc4562b984828c150bf6c4b0819dfece7
MD5 e7c15731090e42cb8621b45e4ad6949c
BLAKE2b-256 2cd37353b139b864aa0bcb01b780aae9b268555d97f1ff20fa60e3933a621dd8

See more details on using hashes here.

File details

Details for the file dse_data_loader-0.0.31-py3-none-any.whl.

File metadata

  • Download URL: dse_data_loader-0.0.31-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for dse_data_loader-0.0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 da176b1de100737c744547f4d9526c7c9f31cc26fa711d81803dacaa200a39d7
MD5 dec34e9afe40d23f0d5308edec83bde0
BLAKE2b-256 42351d49cf20f9abf7ff56b34b01c3a009b5d5e2cca4c05afe9701fe020d57c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page