This project retrieves stock data from Yahoo Finance, stores it in MongoDB, and visualizes it using a Dash dashboard.
The use of this software and the provided data should not be considered as financial advice. No responsibility is assumed for any financial decisions made based on the data or results obtained from the software. Users are responsible for conducting their own research and making informed decisions.
Here’s an overview of the project directory structure:
yfinance-stocks-dashboard/
├── src/
│ ├── stocks.py # Retrieves stock data from Yahoo Finance and stores it in MongoDB
│ ├── dashboard.py # Builds the Dash dashboard to visualize stock data
│ └── main.py # Main entry point for running the project, starts the dashboard and data retrieval
├── .gitignore # For ignoring unnecessary files in a Python/Dash project
├── LICENSE # MIT License
├── README.md # Project overview and setup instructions
The following libraries are required to run this project:
dash
dash_table
pandas
plotly
pymongo
requests
yfinance
This project was developed using Python version 3.11.5 and MongoDB 8.0.4.
- Clone the repository to your local machine:
git clone https://github.com/gapohi/yfinance-stocks-dashboard.git
- Navigate to the repository directory:
cd yfinance-stocks-dashboard
- Install the required libraries:
pip install dash dash_table pandas plotly pymongo requests yfinance
- Run the main.py file
cd src
python main.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.