Options Strategy API

Price options and analyze multi-leg strategies programmatically.
Black-Scholes pricing · Full Greeks · P&L curves · Probability of Profit · Expected Move

Get API Key on RapidAPI →OpenAPI Spec (JSON)

Base URL

https://optionprofitcalculator.ai

Free

$0/mo

50 req / month

Basic

$9.99/mo

1,000 req / month

Pro

$29.99/mo

10,000 req / month

Endpoints

GET/api/v1/strategies

List all 22 available preset strategies. Use the slug value as the optional strategy field in the calculate endpoint.

Response

{
  "success": true,
  "count": 22,
  "strategies": [
    { "slug": "iron-condor",   "name": "Iron Condor",   "legs": 4 },
    { "slug": "long-call",     "name": "Long Call",     "legs": 1 },
    { "slug": "covered-call",  "name": "Covered Call",  "legs": 1, "hasStock": true },
    "...22 strategies total..."
  ]
}
POST/api/v1/price

Price a single call or put using Black-Scholes. Returns theoretical price, intrinsic/extrinsic value, and all five Greeks. Provide expiry (YYYY-MM-DD) or dte (days to expiration).

Request

POST /api/v1/price
Content-Type: application/json

{
  "type":   "call",
  "spot":   450.00,
  "strike": 460.00,
  "dte":    30,
  "iv":     0.25
}

Response

{
  "success": true,
  "price": 9.32,
  "intrinsic": 0.00,
  "extrinsic": 9.32,
  "greeks": {
    "delta":  0.4155,
    "gamma":  0.0312,
    "theta": -0.0521,
    "vega":   0.1840,
    "rho":    0.0920
  }
}
POST/api/v1/calculate

Full multi-leg strategy analysis. Supports 1–8 legs (calls, puts, stock). Returns P&L curve at expiration (101 points), breakeven prices, max profit/loss, net debit/credit, Probability of Profit, Expected Move, and portfolio Greeks.

Request

POST /api/v1/calculate
Content-Type: application/json

{
  "spot": 450.00,
  "strategy": "iron-condor",
  "legs": [
    { "type": "put",  "position": "long",  "strike": 420,
      "premium": 1.50, "iv": 0.28, "dte": 30 },
    { "type": "put",  "position": "short", "strike": 430,
      "premium": 2.80, "iv": 0.26, "dte": 30 },
    { "type": "call", "position": "short", "strike": 470,
      "premium": 2.60, "iv": 0.25, "dte": 30 },
    { "type": "call", "position": "long",  "strike": 480,
      "premium": 1.30, "iv": 0.27, "dte": 30 }
  ]
}

Response

{
  "success": true,
  "strategy": "iron-condor",
  "breakevens": [427.4, 472.6],
  "maxProfit": 260,
  "maxLoss": -740,
  "totalDebit": -260,
  "probabilityOfProfit": 0.494,
  "expectedMove": { "dollar": 12.40, "percent": 2.75 },
  "greeks": {
    "delta": -0.02, "gamma": 0.004,
    "theta": 0.18,  "vega": -0.31, "rho": -0.02
  },
  "pnlCurve": [
    { "price": 420.00, "pnl": -740.00 },
    { "price": 450.00, "pnl": 260.00 },
    "...101 points total..."
  ]
}

All calculations use Black-Scholes with a default risk-free rate of 5%. Prices are theoretical — always verify with live market data before trading. Contact us for enterprise access or custom integrations.