Install
openclaw skills install einstein-research-portfolio-risk-dvPerforms a comprehensive, portfolio-level risk analysis. Calculates VaR (Value at Risk), max drawdown, correlation matrix, stress tests against historical crises, and identifies concentration risks. Use when asked about portfolio risk, drawdown, hedging, or stress testing.
openclaw skills install einstein-research-portfolio-risk-dvThis skill performs a comprehensive, portfolio-level risk analysis. It goes beyond individual position risk to quantify systemic and correlated risks across the entire portfolio.
Core Features:
Explicit Triggers:
Implicit Triggers:
The analysis requires the current portfolio holdings, typically from a CSV or JSON file.
Input Format (portfolio.json):
{
"positions": [
{ "ticker": "AAPL", "quantity": 100, "avg_price": 150.00 },
{ "ticker": "TSLA", "quantity": 50, "avg_price": 200.00 },
{ "ticker": "SPY", "quantity": 200, "avg_price": 400.00 }
],
"cash": 25000
}
The portfolio-risk-analyzer CLI tool runs the full analysis suite.
portfolio-risk-analyzer run \
--portfolio path/to/portfolio.json \
--benchmark SPY
The script performs the following calculations:
The script generates a detailed report in both JSON and Markdown formats.
JSON Output (risk_report_YYYY-MM-DD.json):
Markdown Report (risk_report_YYYY-MM-DD.md):
Synthesize the key findings from the Markdown report into a clear, actionable summary. Start with the most critical information (like high concentration or poor stress test results) and provide concrete suggestions for risk mitigation.