Manage your investments like a data scientist
Project description
Personal Investments Dashboard
Personal web application to manage a diverse investment portfolio in multiple currencies, including crypto and market indexes. Delivered as a Streamlit app. Includes also a module to hack your investments in Jupyter notebooks.
Dashboards reads your ledger and balances from an online Google Spreadsheet (see example), gets historical benchmarks and currency convertion tables from multiple configurabe internet sources, and created a rich explorable dashboard.
All or some or each of your investments are internally normalized into a single “fund” with number of shares and share value. From there, multiple visualizations are possible.
Install and Run
Runs on macOS, Windows, Linux or anywhere Python, Pandas and Streamlit can be installed. Here is a video I put in place that shows Investorzilla getting installed on a Mac and run for the first time with its example portfolio file.
Install
After getting Python 3 installed, install Investorzilla with pip
:
pip install investorzilla --user
Configure
Create a folder and then build your investorzilla.yaml
file with information about data sources, benchmarks and currencies.
Start with the examples from https://github.com/avibrazil/investorzilla/blob/main/config_examples/
Run
After installing your API keys (in case of using CryptoCompare data), run it like the following from the same folder containing investorzilla.yaml
:
investorzilla
Access the dashboard on http://localhost:8501 (or remotelly if your browser is in a different machine)
Features
Virtual Funds
Create a unified virtual fund with only some of the investments found in your portfolio spreadsheet.
Your whole porfolio will be used if left balnk. Then you might exclude some to match the particular visualization you are trying to attain.
Currency and Benchmarks
You may track your investments using multiple currencies, inluding crypto. I have investments in USD and BRL. You can create virtual funds that mix different currencies, in this case you must select a currency under which you’ll view that (virtual) fund. Values from your spreadsheet will be converted to the target currency on a daily basis.
Also, you might compare your investment performance with market benchmarks as S&P 500, NASDAQ index etc. Just remember to use a benchmark that matches the current currency, otherwise comparisons won’t make sense.
Period Selector
If you have enough or high frequency data, you can divide time in more granular regular periods. Default is monthy view with an anual summary.
Graphs and Reports
Currently supports 4 graphs, from left to right, top to bottom:
- Virtual share value performance compared to a selected benchmark
- Periodic (monthly, weekly) gain, along with 12M moving average and moving median
- Frequency histogram of percent return rate per period (default is per month)
- Fund savings, balance and gains (which is pure balance minus savings)
There is also numerical reports showing:
- Performance
- Periodic (monthly) rate of return with an macro-period (yearly) accumulated value
- Same for selecte benchmark
- Excess return over benchmark
- Periodic and accumulated gain
- Wealth Evolution
- Current balance
- Balance over savings
- Cumulated gains
- Cumulated savings
- Movements on the periods, which is the sum of money added to and removed from virtual fund
Usage Tips
- Select a custom period on the slider
- View your main metrics on top of report
- To optimize screen usage, on the the top right menu, select Settings and then Wide mode
- Hide the left panel to gain even more screen real estate
- Use Refresh data buttons to update local cache with latest info from your porfolio spreadsheet, market data or both.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file investorzilla-4.3.tar.gz
.
File metadata
- Download URL: investorzilla-4.3.tar.gz
- Upload date:
- Size: 88.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b76fefa56be906fcb8ef067a625cfa7666724c5b6d28af634a206f4296d48a8 |
|
MD5 | f1b278dfae40770f7f0ed308cc1a9f4a |
|
BLAKE2b-256 | f3b99fcbdd40719271c969a491b37a611caafac7cb8fe77b8138f31b6b4a30fb |
File details
Details for the file investorzilla-4.3-py3-none-any.whl
.
File metadata
- Download URL: investorzilla-4.3-py3-none-any.whl
- Upload date:
- Size: 83.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bbe059338be79790db1eb95ba9e9de7a365dc310ef09b64e10835b659838905 |
|
MD5 | 8fcd2bf2b2c1dd746037169929ee6996 |
|
BLAKE2b-256 | 510e364400fbec46a227b4b5cde5e0a0b1b51792671a8364750c3e8216e1024a |