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+
Metadata
Release files for portfolio-risk-tracker 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| portfolio_risk_tracker-0.3.0.tar.gz | 26.5 kB | Without provenance | Details for portfolio_risk_tracker-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| portfolio_risk_tracker-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for portfolio_risk_tracker-0.3.0-py3-none-any.whl |
Total release size: 55.2 kB
Release files / portfolio_risk_tracker-0.3.0.tar.gz
| Download URL | portfolio_risk_tracker-0.3.0.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0132134c30999687099aa968c5eea088a6791b8a929600b4798745fc504fe00e
|
|
BLAKE2b-256 checksum How to use checksums |
c581443a16ab72d1a0edbb92a4c5bd8400bd88e38726800189eaa8c875304715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / portfolio_risk_tracker-0.3.0-py3-none-any.whl
| Download URL | portfolio_risk_tracker-0.3.0-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4583a7872d7297f030f67f786f483f990a05c74e301746200a32cd94051b44f7
|
|
BLAKE2b-256 checksum How to use checksums |
1a48523c7df89533fff85077735b51391fe4b0dd3567e1e374a4583942fdcbfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for portfolio-risk-tracker 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.