π
π
β Central Portfolio Tracking
Crypto Tracker
π
Easy asset tracking β at a glance
Dashboard to centrally monitor current crypto portfolio developments, by providing an overview of their current value. Values can either be displayed by their current Overall value (requires adding Purchases) or by their Current value (indicated by the V
next to the number).
The current course data is polled from CoinMarketCap's REST API and stored in the database. The API allows you to make a maximum of 333 points worth of daily requests (~1 request / 5min). Querying multiple cryptos may increase the amounts of points required per API call, thus requires increasing the time between requests.
β
Features
πΎ
Deployment Deployment is best done via Docker β can also be achieved by installing each component manually, but this is quite tedious, so I'm not going to detail that here.
This application is meant to be run behind e.g. Traefik or a WAF (Web Application Firewall) that handles the SSL certificates, such as LetsEncrypt.
Once rolled out the application is reachable via http://
Requirements
Setup
All relevant parameters are controlled via environment variables that are passed to the docker-compose stack. For further reference review the config/settings.py
file.
mv dotenv-sample .env
vi .env
SECRET_KEY
just set itPOSTGRES_PASSWORD
database passwordSITE_HOSTNAME
name your site is going to be reached at. Multiple values can be space-separatedALLOWED_HOSTS
allowed host headers - should haveSITE_HOSTNAME
values + IPv4 of your Docker hostCOINMARKET_KEY
your CoinMarketCap API key used for requestsTARGET_CURRENCY
if you wish to convert the USD course + price data to your local currency
Docker Rollout
mv docker/docker-compose .
mv docker/rebuild-shortcut rebuild
chmod +x ./rebuild
./rebuild
Everything should now be running smoothly. Use a service (cron
will also do) to start the process automatically at boot. Alternatively you can also add -d
to the docker-compose
command in rebuild
and run it manually at each startup.
π
Usage Once running, access the admin panel via http://
To access it, you will need to create a user using chmod +x docker/manage-shortcut; ./docker/manage-shortcut createsuperuser
Login with the credentials just created, to then add the Cryptos
you wish to track. Once added, Purchases
enable you to indicate your assets/amount for each crypto.
π οΈ
TODOs - Resize image
- Price Alerting