Skip to content

Aabishkar2/nepse-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,036 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nepse-data

nepse-data is the collection of all the datasets (from past to present) of various companies listed in the Nepal Stock Market. This repository is built for the students and people who want to perform analysis on Nepal Stock Market using historical (& current) data.

Data

The data can be found in data/company folder and are arranged according to the company. For example: in NMB.csv you can find all the data of NMB Bank Limited sorted in ascending order (date-wise).

The repository currently includes data of around 130 companies. However more are coming soon. Feel free to create an issue if you want data of any particular company urgently.

The Github Actions updates the data on an almost daily basis so that the datasets available here are up to date.

Code

The code through which the data were/are being collected resides on the src/ folder. The code is written in python3.8 and the required library is stored in src/requirements.txt

If you want to collect the datasets by yourself then you can run the following command.

Firstly, Just make sure you have python3 installed 😉. If not please find python3 installation procedure over here

# go into the src folder
cd src

# install requirements
pip3 install -r requirements.txt

# for historical data collection
# if you want the datasets only then you can just run this
python3 allDataScrapper.py

# optional -- for daily data updates
python3 dailyDataScrapper.py

The code that updates data on a daily basis resides on the .github/.workflows directory and runs on Github Action as a CRON job. The Github Action workflow runs 5 times every day (Sunday to Friday) so that if the data collection is missed first time then it will work the second time and so on.

Contributing

Pull requests are welcome. Please open an issue first to discuss what you would like to change.

Things you can consider doing:

  • Github action to update data on a daily basis on Kaggle
  • Date-wise Collection of data from past to present

License

MIT

About

Historical and current datasets of Nepal Stock Market listed companies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages