This is a Python web app built with Solara where you can analyze dividend stocks.
First clone the repository:
git clone [email protected]:FerusAndBeyond/python-dividend-dashboard.git
and then cd into it
cd python-dividend-dashboard
Run init.sh
:
sh init.sh
This will create a .env
file for configuration variables such as the needed API keys. The following APIs are used:
Financial Modeling Prep (FMP) is a financial data API containing various data for fundamental analysis. You can sign up for free to obtain 250 API requests per day. Alternatively, for a premium version with more requests and additional features, you can sign up for a paid version. You can support me by using my affiliate link while also getting 15% off here.
More info about FMP here.
OpenAI, the company that created ChatGPT, has an API that you can use to analyze and generate text using AI. More info here.
Add the two API keys to the .env
file for variables FMP_API_KEY
and OPENAI_API_KEY
.
There are two options, run in docker or outside of docker. To run in docker, you need to first have docker installed. Then, simply call:
sh run_docker.sh
Then open http://localhost:5000/.
To shut it down, use sh down.sh
.
To run outside of Docker, first install the dependencies:
pip install -r build/requirements.txt
Then run the app:
sh run.sh
and open http://localhost:8765/.