Skip to main content

Manage your investments like a data scientist

Project description

Personal Investments Dashboard

Classes and Streamlit app to manage a diverse investment portfolio in multiple currencies, including crypto and market indexes.

Dashboards reads your ledger and balances from an online Google Spreadsheet (see example), get 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.

Install

After getting Python 3 installed, install also some requirements as:

pip3 install -r requirements.txt --user

Configure

Create investor_ui_config.yaml file copying investor_ui_config.example.yaml and edit to your needs.

Get CryptoCompare (in case of having crypto) API key and update it on investor_ui_config.yaml. More instructions on investor_ui_config.example.yaml.

To get access to your Google Spreadsheets, app will send you to a Google authorization screen. Your Google Sheets data will be saved and cached in the computer this Streamlit app is running.

Not required, but you can use your own Google OAuth app authorization secrets in app-credentials-for-google-sheets.json

Run

After installing your API keys, current configuration on the example file will work out of the box as I left a usable example spreadsheet on the web.

Run it as:

streamlit run investor_ui.py

Access the dashboard on http://localhost:8501

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:

  1. Virtual share value performance compared to a selected benchmark
  2. Periodic (monthly, weekly) gain, along with 12M moving average and moving median
  3. Frequency histogram of percent return rate per period (default is per month)
  4. Fund savings, balance and gains (which is pure balance minus savings)

There is also numerical reports showing:

  1. Performance
    1. Periodic (monthly) rate of return with an macro-period (yearly) accumulated value
    2. Same for selecte benchmark
    3. Excess return over benchmark
    4. Periodic and accumulated gain
  2. Wealth Evolution
    1. Current balance
    2. Balance over savings
    3. Cumulated gains
    4. Cumulated savings
    5. Movements on the periods, which is the sum of money added to and removed from virtual fund

Usage Tips

  1. Select a custom period on the slider
  2. View your main metrics on top of report
  3. To optimize screen usage, on the the top right menu, select Settings and then Wide mode
  4. Hide the left panel to gain even more screen real estate
  5. Use Refresh data buttons to update local cache with latest info from your porfolio spreadsheet, market data or both.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

investorzilla-2.3.3.tar.gz (78.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

investorzilla-2.3.3-py3-none-any.whl (71.8 kB view details)

Uploaded Python 3

File details

Details for the file investorzilla-2.3.3.tar.gz.

File metadata

  • Download URL: investorzilla-2.3.3.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for investorzilla-2.3.3.tar.gz
Algorithm Hash digest
SHA256 ee1473d554cf0939a8501f95605fe0c84e61ce0b67af675253d270af87d65ca8
MD5 e71e558caec7841fc3cd6224cabf7944
BLAKE2b-256 bd8d4be5d61bb623a0d5d05af9344f39cbfc5d11bf1a66cd9eba44fffac6dbc3

See more details on using hashes here.

File details

Details for the file investorzilla-2.3.3-py3-none-any.whl.

File metadata

  • Download URL: investorzilla-2.3.3-py3-none-any.whl
  • Upload date:
  • Size: 71.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for investorzilla-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b470435e9344476d8d50dba340e23d7b8e8ce12b542b28827446b29c3c96c49d
MD5 cbc895f8bfb3410ef0adce5ed489a497
BLAKE2b-256 47fd5b0cc740922bd6a1911e4faf1a925192b70ace284d554a5e2fe64dc56baf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page