Stocktracker is a website to keep track of your stocks and ETF. After the exchanges close it will fetch the stock prices of the tracked stocks. You add the buy and sell point and keep track of how your portfolio is developing over time. It's a simple project I made because my bank only provided me an app which didn't gave me a great sight on things.
  • HTML 50.9%
  • Python 32.9%
  • CSS 16.1%
  • Dockerfile 0.1%
Find a file
2026-06-20 21:13:53 +02:00
app Release 1e645a9f 2026-06-20 21:13:53 +02:00
images Release 1e645a9f 2026-06-20 21:13:53 +02:00
.env.example Release 1e645a9f 2026-06-20 21:13:53 +02:00
.gitattributes Release 1e645a9f 2026-06-20 21:13:53 +02:00
.gitignore Release 1e645a9f 2026-06-20 21:13:53 +02:00
docker-compose.yml.example Release 1e645a9f 2026-06-20 21:13:53 +02:00
Dockerfile Release 1e645a9f 2026-06-20 21:13:53 +02:00
README.md Release 1e645a9f 2026-06-20 21:13:53 +02:00
requirements.txt Release 1e645a9f 2026-06-20 21:13:53 +02:00
run.py Release 1e645a9f 2026-06-20 21:13:53 +02:00

StockTracker

This site will keep track of your Stocks and ETF.

About

As my bank only gave me an app on my phone, with hardly any good graphs, I wanted to get better insight in how my money was performing. I made this site to run at home in a container. It downloads stock data once a day when the exchange for specific stocks is closed. It gives you data on each stock, with graphs, your own assets as a second Y-axis, changes per day, week or month. Ofcourse there is also a portfolio page which packs it all together for you to give you a great insight in how your money grew (or went missing)

Usage

Create your .env file (see .env.example) and add your SECRET_KEY, APP_USERNAME and APP_PASSWORD_HASH to it.

Rename the docker-compose.yml.example to docker-compose.yml and run docker compose up --build -d to get your container up and running. This will start a container, setup a SQLite database and start the Flask webserver.

Once logged in, go to settings and setup your default currency!

Settings

Now you navigate to Stocks and start adding the assets you want to keep track. It will fetch data from the last year for you as you add them. When you click on the stock name you will see the graph like the screenshot below and can add transactions.

New stock

Adding all your stocks and transactions will give you a nice overview in your portfolio.

“Sell in May and go away, and remember to come back in September.”

-- Ivo

Support me on Ko-fi