run_scenario_analysis
Simulate what-if scenarios on a portfolio to estimate P&L under price moves, volatility changes, and time decay. Breaks down delta/vega/theta contributions for risk assessment.
Instructions
Run what-if scenario analysis on a portfolio.
Shows how portfolio value changes under different market conditions (linear delta/vega/theta approximation).
Use this tool when the user asks about:
What-if scenarios
Portfolio P&L under different conditions
Price/vol sensitivity
Args: positions: JSON array of positions, e.g. '[{"ticker": "AAPL", "position_type": "STOCK", "quantity": 100, "current_price": 210}, {"ticker": "AAPL", "position_type": "CALL", "quantity": -2, "strike": 220, "expiration": "2026-08-21", "current_price": 4.10, "delta": 0.31, "theta": -8.2, "vega": 21.0}]'. Get option Greeks from get_options_chain first. Plain text ("AAPL 100 shares") works for stock-only portfolios. stock_move_pct: Percent stock price change to simulate (e.g. -5) iv_change_pct: Percent IV change to simulate (e.g. 25) days_forward: Days of time decay to advance
Returns: Estimated P&L under the scenario with per-Greek contributions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | Yes | ||
| days_forward | No | ||
| iv_change_pct | No | ||
| stock_move_pct | No |