This is a project to keep track of finances. It generates graphs like the following:
Generally you will not be able to use this as is and it will need lots of modifications. This is just to get you started.
The cron_hourly.sh
script should be run hourly. This stores all the historical data and creates plots.
Crontab example:
@hourly $HOME/code/accounts/cron_hourly.sh
# For ETFs or stocks.
TICKER="IBKR"
./add_ticker.py --ticker TSLA
# For indices.
TICKER="^SSMI"
./add_ticker.py --ticker ^SPX --is-index
Update common.py
(COMMODITIES_REGEX
) and balance_etfs.py
to include new ticker.
docker compose up -d selenium-dev
SELENIUM_REMOTE_URL="http://localhost:4444" ./homes.py