Install
openclaw skills install portfolio-analyticsComputes portfolio risk and exposure metrics before sizing and rebalance decisions.
openclaw skills install portfolio-analyticsCompute quantitative portfolio risk analytics before sizing and rebalance decisions.
Required inputs:
HOLDINGS_CSV: rows with portfolio holdings and position weights or fields sufficient to compute weights.PRICE_CSV: historical prices or returns for held symbols.Optional inputs:
BENCHMARK_CSV: benchmark prices or returns for beta and relative-risk context.SECTOR_MAP_CSV: symbol-to-sector mapping for sector exposure.scripts/analyze_portfolio.py with explicit holdings, price history, and optional benchmark or sector inputs.Portfolio Metrics
Benchmark Metrics
Correlation Summary
Concentration Risk
Sector Exposure
Top Risk Contributors
Confidence and Data Gaps
Handoff Bundle
Handoff bundle.High: holdings are complete, weights reconcile, price history is long enough for the stated horizon, benchmark is available when beta or relative risk is discussed, and sector/liquidity coverage is broad.Medium: holdings and prices are usable, but one major input is partial, such as benchmark availability, sector mapping, liquidity coverage, or price-history length.Low: holdings are incomplete, weights do not reconcile, price history is short, benchmark is missing for beta-sensitive claims, or sector/liquidity coverage is sparse.Include these exact marker fields:
as_of_dateholdingsweightsportfolio_metricsbenchmark_metricscorrelation_summaryconcentration_risksector_exposuretop_risk_contributorsconfidencedata_gaps