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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file portfolio_risk_tracker-0.3.0.tar.gz.
File metadata
- Download URL: portfolio_risk_tracker-0.3.0.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0132134c30999687099aa968c5eea088a6791b8a929600b4798745fc504fe00e
|
|
| MD5 |
33ec1e69d6c1c07b672e5c56b88f3eca
|
|
| BLAKE2b-256 |
c581443a16ab72d1a0edbb92a4c5bd8400bd88e38726800189eaa8c875304715
|
File details
Details for the file portfolio_risk_tracker-0.3.0-py3-none-any.whl.
File metadata
- Download URL: portfolio_risk_tracker-0.3.0-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4583a7872d7297f030f67f786f483f990a05c74e301746200a32cd94051b44f7
|
|
| MD5 |
f2f384d38c233beaa32a01dc9d40ca62
|
|
| BLAKE2b-256 |
1a48523c7df89533fff85077735b51391fe4b0dd3567e1e374a4583942fdcbfd
|