AlphaGBM P&L Simulator
Prerequisites
- API Key: Set env
ALPHAGBM_API_KEY (format agbm_xxxx...).
- Base URL: Default
https://alphagbm.zeabur.app. Override with env ALPHAGBM_BASE_URL.
What This Skill Does
Simulates profit and loss for any option position across multiple dimensions -- underlying price, implied volatility, and time to expiration. Produces P&L diagrams, breakeven analysis, and probability-weighted outcome distributions.
Four Core Strategies for Context
| Strategy |
Ideal Trend |
Max Profit |
Max Loss |
| Sell Put |
Neutral / Bullish |
Premium received |
Strike - Premium |
| Sell Call |
Neutral / Bearish |
Premium received |
Unlimited (uncovered) |
| Buy Call |
Bullish |
Unlimited |
Premium paid |
| Buy Put |
Bearish |
Strike - Premium |
Premium paid |
Simulation Capabilities
| Capability |
Description |
| P&L at Expiry |
Classic payoff diagram -- profit/loss vs. underlying price at expiration |
| P&L Over Time |
How the position's value evolves from now to expiry (time-series curves) |
| What-If: Price |
Vary underlying price by fixed amount or percentage -- see impact on P&L |
| What-If: IV |
Vary implied volatility -- see how IV crush or spike affects the position |
| What-If: Time |
Fast-forward to a specific date -- see theta decay impact |
| Probability Distribution |
Monte Carlo simulation of outcomes with probability of profit |
| Breakeven Analysis |
Exact breakeven points with time-varying breakevens before expiry |
Supported Position Types
- Single leg (long call, long put, short call, short put)
- Two-leg spreads (vertical, calendar, diagonal)
- Three-leg combinations (butterflies, ratio spreads)
- Four-leg combinations (iron condors, iron butterflies, double diagonals)
- Arbitrary multi-leg custom positions
API Endpoint
P&L Simulator
POST /api/options/tools/simulate
Content-Type: application/json
{
"symbol": "AAPL",
"spot": 150.0,
"legs": [
{"action": "buy", "option_type": "call", "strike": 145, "expiry_days": 30, "iv": 0.26},
{"action": "sell", "option_type": "call", "strike": 150, "expiry_days": 30, "iv": 0.25}
]
}
Parameters:
- symbol (required): Ticker symbol
- spot (required): Current underlying price
- legs (required): Array of option legs, each with:
- action:
"buy" or "sell"
- option_type:
"call" or "put"
- strike: Strike price
- expiry_days: Days to expiration
- iv: Implied volatility as decimal (e.g., 0.26 for 26%)
How to Use
Input
- Required: Position definition (legs with strike, expiry, type, quantity, entry price)
- Optional: Scenario parameters (price range, IV shift, target date), number of Monte Carlo paths
Output Structure
{
"ticker": "AAPL",
"price": 218.45,
"position": {
"strategy": "Bull Call Spread",
"legs": [
{"action": "buy", "type": "call", "strike": 215, "expiry": "2026-04-18", "price": 7.20, "qty": 1},
{"action": "sell", "type": "call", "strike": 225, "expiry": "2026-04-18", "price": 3.40, "qty": 1}
],
"net_debit": 380
},
"pnl_at_expiry": {
"price_axis": [195, 200, 205, 210, 215, 218.8, 220, 225, 230, 235],
"pnl_axis": [-380, -380, -380, -380, -380, 0, 120, 620, 620, 620]
},
"pnl_over_time": {
"dates": ["2026-03-29", "2026-04-04", "2026-04-11", "2026-04-18"],
"curves": {
"at_210": [-180, -220, -290, -380],
"at_218": [50, 30, 10, -20],
"at_225": [320, 400, 510, 620]
}
},
"breakevens": [218.80],
"max_profit": 620,
"max_loss": 380,
"risk_reward_ratio": 1.63,
"probability_of_profit": 0.56,
"expected_value": 42.50,
"scenarios": {
"price_down_10pct": {"pnl": -380, "pnl_pct": -100},
"price_up_10pct": {"pnl": 620, "pnl_pct": 163},
"iv_crush_50pct": {"pnl": -85, "note": "IV drop hurts long spread slightly"},
"iv_spike_50pct": {"pnl": 120, "note": "IV rise helps long spread slightly"}
}
}
Example Queries
| User Says |
What Happens |
| "Simulate PnL for AAPL bull call spread" |
Full P&L diagram at expiry + over time |
| "What if NVDA drops 10%?" |
Price scenario analysis for current position |
| "P&L diagram" |
Expiry payoff chart for any defined position |
| "Test my iron condor" |
Full simulation with breakevens, max P&L, probability of profit |
| "Breakeven analysis for my spread" |
Exact breakeven points + time-varying breakevens |
| "Stress test: what if IV doubles?" |
IV shock scenario with P&L impact |
| "Monte Carlo for my straddle" |
10,000-path simulation with outcome distribution |
Mock Data
Demo tickers available without API key: AAPL, NVDA, SPY, TSLA, META. Simulations use realistic pricing models calibrated to mock-data/ snapshots.
Related Skills
- alphagbm-options-strategy -- Get strategy recommendations, then simulate them here
- alphagbm-greeks -- Understand the Greeks driving the P&L changes
- alphagbm-iv-rank -- Context for whether IV scenarios are realistic
- alphagbm-vol-surface -- Full IV landscape for calibrating simulations
Powered by AlphaGBM -- Real-data options & research intelligence for traders and AI agents. 10K+ users.
1---2name: alphagbm-pnl-simulator3description: Simulates profit and loss for option positions across underlying price, implied volatility, and time to expiration, generating diagrams, breakeven analysis, and probability distributions.4---56# AlphaGBM P&L Simulator78## Prerequisites910- **API Key**: Set env `ALPHAGBM_API_KEY` (format `agbm_xxxx...`).11- **Base URL**: Default `https://alphagbm.zeabur.app`. Override with env `ALPHAGBM_BASE_URL`.1213## What This Skill Does1415Simulates **profit and loss** for any option position across multiple dimensions -- underlying price, implied volatility, and time to expiration. Produces P&L diagrams, breakeven analysis, and probability-weighted outcome distributions.1617### Four Core Strategies for Context1819| Strategy | Ideal Trend | Max Profit | Max Loss |20|----------|------------|------------|----------|21| **Sell Put** | Neutral / Bullish | Premium received | Strike - Premium |22| **Sell Call** | Neutral / Bearish | Premium received | Unlimited (uncovered) |23| **Buy Call** | Bullish | Unlimited | Premium paid |24| **Buy Put** | Bearish | Strike - Premium | Premium paid |2526### Simulation Capabilities2728| Capability | Description |29|-----------|-------------|30| **P&L at Expiry** | Classic payoff diagram -- profit/loss vs. underlying price at expiration |31| **P&L Over Time** | How the position's value evolves from now to expiry (time-series curves) |32| **What-If: Price** | Vary underlying price by fixed amount or percentage -- see impact on P&L |33| **What-If: IV** | Vary implied volatility -- see how IV crush or spike affects the position |34| **What-If: Time** | Fast-forward to a specific date -- see theta decay impact |35| **Probability Distribution** | Monte Carlo simulation of outcomes with probability of profit |36| **Breakeven Analysis** | Exact breakeven points with time-varying breakevens before expiry |3738### Supported Position Types39- Single leg (long call, long put, short call, short put)40- Two-leg spreads (vertical, calendar, diagonal)41- Three-leg combinations (butterflies, ratio spreads)42- Four-leg combinations (iron condors, iron butterflies, double diagonals)43- Arbitrary multi-leg custom positions4445## API Endpoint4647### P&L Simulator4849```50POST /api/options/tools/simulate51Content-Type: application/json5253{54 "symbol": "AAPL",55 "spot": 150.0,56 "legs": [57 {"action": "buy", "option_type": "call", "strike": 145, "expiry_days": 30, "iv": 0.26},58 {"action": "sell", "option_type": "call", "strike": 150, "expiry_days": 30, "iv": 0.25}59 ]60}61```6263Parameters:64- **symbol** (required): Ticker symbol65- **spot** (required): Current underlying price66- **legs** (required): Array of option legs, each with:67 - **action**: `"buy"` or `"sell"`68 - **option_type**: `"call"` or `"put"`69 - **strike**: Strike price70 - **expiry_days**: Days to expiration71 - **iv**: Implied volatility as decimal (e.g., 0.26 for 26%)7273## How to Use7475### Input76- **Required**: Position definition (legs with strike, expiry, type, quantity, entry price)77- **Optional**: Scenario parameters (price range, IV shift, target date), number of Monte Carlo paths7879### Output Structure8081```json82{83 "ticker": "AAPL",84 "price": 218.45,85 "position": {86 "strategy": "Bull Call Spread",87 "legs": [88 {"action": "buy", "type": "call", "strike": 215, "expiry": "2026-04-18", "price": 7.20, "qty": 1},89 {"action": "sell", "type": "call", "strike": 225, "expiry": "2026-04-18", "price": 3.40, "qty": 1}90 ],91 "net_debit": 38092 },93 "pnl_at_expiry": {94 "price_axis": [195, 200, 205, 210, 215, 218.8, 220, 225, 230, 235],95 "pnl_axis": [-380, -380, -380, -380, -380, 0, 120, 620, 620, 620]96 },97 "pnl_over_time": {98 "dates": ["2026-03-29", "2026-04-04", "2026-04-11", "2026-04-18"],99 "curves": {100 "at_210": [-180, -220, -290, -380],101 "at_218": [50, 30, 10, -20],102 "at_225": [320, 400, 510, 620]103 }104 },105 "breakevens": [218.80],106 "max_profit": 620,107 "max_loss": 380,108 "risk_reward_ratio": 1.63,109 "probability_of_profit": 0.56,110 "expected_value": 42.50,111 "scenarios": {112 "price_down_10pct": {"pnl": -380, "pnl_pct": -100},113 "price_up_10pct": {"pnl": 620, "pnl_pct": 163},114 "iv_crush_50pct": {"pnl": -85, "note": "IV drop hurts long spread slightly"},115 "iv_spike_50pct": {"pnl": 120, "note": "IV rise helps long spread slightly"}116 }117}118```119120### Example Queries121122| User Says | What Happens |123|-----------|-------------|124| "Simulate PnL for AAPL bull call spread" | Full P&L diagram at expiry + over time |125| "What if NVDA drops 10%?" | Price scenario analysis for current position |126| "P&L diagram" | Expiry payoff chart for any defined position |127| "Test my iron condor" | Full simulation with breakevens, max P&L, probability of profit |128| "Breakeven analysis for my spread" | Exact breakeven points + time-varying breakevens |129| "Stress test: what if IV doubles?" | IV shock scenario with P&L impact |130| "Monte Carlo for my straddle" | 10,000-path simulation with outcome distribution |131132### Mock Data133134Demo tickers available without API key: AAPL, NVDA, SPY, TSLA, META. Simulations use realistic pricing models calibrated to `mock-data/` snapshots.135136### Related Skills137- **alphagbm-options-strategy** -- Get strategy recommendations, then simulate them here138- **alphagbm-greeks** -- Understand the Greeks driving the P&L changes139- **alphagbm-iv-rank** -- Context for whether IV scenarios are realistic140- **alphagbm-vol-surface** -- Full IV landscape for calibrating simulations141142---143144*Powered by [AlphaGBM](https://alphagbm.com) -- Real-data options & research intelligence for traders and AI agents. 10K+ users.*