Skip to main content

Terminal dashboard for portfolio risk metrics — beta, Sharpe, VaR, drawdown, alpha & more. Multi-provider market data + Plaid brokerage sync.

Project description

Portfolio Risk Metrics Tracker

A terminal-based portfolio risk dashboard built with Rich.

Install

pip install portfolio-risk-tracker

Usage

# Add positions
portfolio-tracker add AAPL 50 172.50
portfolio-tracker add MSFT 20 415.00

# Import from a Merrill Lynch CSV export
portfolio-tracker import-csv ~/Downloads/holdings.csv

# Full risk dashboard
portfolio-tracker dashboard

# Export to PDF
portfolio-tracker export --format pdf

# Other commands
portfolio-tracker list
portfolio-tracker remove AAPL
portfolio-tracker set-benchmark QQQ
portfolio-tracker set-risk-free 0.045

Metrics

Metric Description
Beta Portfolio sensitivity to the benchmark
Sharpe Ratio Risk-adjusted return (annualised)
Sortino Ratio Sharpe using only downside deviation
Alpha Excess return above CAPM prediction
Information Ratio Active return per unit of tracking error
Tracking Error Annualised std dev of active returns
VaR 95% Daily loss not exceeded 95% of the time
Max Drawdown Largest peak-to-trough decline

Data

Holdings are stored in ~/.portfolio_tracker/holdings.json. Market data is fetched live from Yahoo Finance.

Requirements

Python 3.9+

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

portfolio_risk_tracker-0.2.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

portfolio_risk_tracker-0.2.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file portfolio_risk_tracker-0.2.0.tar.gz.

File metadata

  • Download URL: portfolio_risk_tracker-0.2.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for portfolio_risk_tracker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3e2a21909988eeacc5b7a337c1ef57db675d8fdc4eb92da889fe52966b670520
MD5 4296584d8683664dddc0ce6aeac1626c
BLAKE2b-256 33798d25aa27c2c0fce4183ddaf6c7e886c326731badd0307627639ca14ed736

See more details on using hashes here.

File details

Details for the file portfolio_risk_tracker-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for portfolio_risk_tracker-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e09e434e416ac0647d36c214c196e9d044116f0f6c07d344a786e8b03f02a34
MD5 0168b7d6e8659d7b727fa8c9260198d7
BLAKE2b-256 d12f33c4dd986c3ff94b6ced7b690a86fc1dd3fee4951a34069d8fde3eb9e2bb

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