CLI

Three commands cover 90%

Decompose a ticker. Snapshot a portfolio. Query for the metric you need.

Live Demo

See the API in Action

Stylized demos (not live recordings) — REST and SDK shapes match the API; CLI 'agent' and some MCP tool names illustrate product workflows. Python SDK: python3 -m pip install "riskmodels-py>=0.3.4" on PyPI ([xarray] optional for dataset helpers; [viz] for Kaleido static PNG). CLI: npm install -g riskmodels@latest on npm. Use riskmodels --help and MCP tools/list for what your install exposes. sdk/ · cli/.

riskmodels agent decompose — L3 portfolio attributionportfolio: positions.json
$
[INFO] Loading portfolio: 8 holdings detected...
[INFO] Calling POST /batch/analyze (ERM3-L3-v30)...
[INFO] L3 attribution complete. Building response...
 
{
  "avg_l3_mkt_hr": 1.14,
  "dominant_factor": "market",
  "holdings": {
    "NVDA": { "l3_mkt_hr": 0.97, "l3_sec_hr": 0.14, "sector_etf": "SOXX" },
    "MSFT": { "l3_mkt_hr": 0.88, "l3_sec_hr": 0.11, "sector_etf": "XLK" },
    "AAPL": { "l3_mkt_hr": 0.85, "l3_sec_hr": 0.12, "sector_etf": "XLK" }
  },
  "_metadata": { "model_version": "ERM3-L3-v30", "universe_size": 2987 }
}
CLI — RiskModels | RiskModels API