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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dse_data_loader-0.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da176b1de100737c744547f4d9526c7c9f31cc26fa711d81803dacaa200a39d7 |
|
MD5 | dec34e9afe40d23f0d5308edec83bde0 |
|
BLAKE2b-256 | 42351d49cf20f9abf7ff56b34b01c3a009b5d5e2cca4c05afe9701fe020d57c6 |