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.30.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

dse_data_loader-0.0.30-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

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