Custom Portfolio Dashboard for your Degiro account built with Django
Run
./setup.shfrom the project root. This will create a .env file (if none exists) and builds the container.
The default port in the environment variables (DJANGO_PORT) is set to 8000.
Migrations are also applied right away and a superuser is created so that you can login.
This superuser has the credentials
username: admin
password: admin
Delete this user and create your own once you're ready.
You should now be able to access the dashboard on localhost:8000.
Alternatively, you can run the django directly without building the container. However, this requires to have a Postgres database running on your system.
- Generate
.envfile
You will need a .env file, which you can create by running
sh generate_dotenv.shand filling out the environment variables the way you need them.
- Create a virtual environment
python -m virtualenv venv
source venv/bin/activate- Install the requirements
pip install -r requirements.txt- Run migrations and generate superuser
python manage.py migrate
python manage.py loaddata ./project/fixtures/admin.jsonAs before, the default superuser will have the credentials
username: admin
password: admin
Delete this user and create your own once you're ready.
- Start the app
python manage.py runserver 0.0.0.0:8000You should now be able to access the dashboard on localhost:8000.
If you have properly configured your Degiro credentials in the .env file, you can fetch your
account data from the Degiro API by initiating an ETL process. The ETL process also collects price
date from Yahoo finance.
From within your container (or virtual env) run
python manage.py etl This will take a few moments (mostly due to the price data being fetched from Yahoo finance).
Once you've run the ETL process, your portfolio data is visible on the dashboard.
The Makefile contains a number of convenience PHONY commands that you may use to access certain
behaviors more quickly.
For example, to enter the container's bash console, simply run
make bashHave a look at the Makefile to learn about the other commands.
The app contains a dashboard view for you Degiro Portfolio.

- Django for the general project setup
- YFinance to pull price data for stocks
- PostgreSQL database for persistent storage
- Docker Compose for containerization
- SB Admin 2 bootstrap template for the frontend