Catalog/opt-vertical-spread-payoff

Calculators

Vertical spread payoff API

Compute net debit/credit, breakeven, max profit, max loss, and risk/reward for a call or put vertical spread (spread width minus net premium per the 100x multiplier). Deterministic; debit vs credit logic LLMs get wrong. Answers 'what's the max profit on this bull call spread','where does my credit spread break even','what's the risk/reward on this vertical'.

Price$0.03per request
MethodPOST
Route/v1/calc/opt-vertical-spread-payoff
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
optionsvertical-spreadcalcpayoffcredit-spreaddebit-spreadderivativestrading
API URLhttps://x402.hexl.dev/v1/calc/opt-vertical-spread-payoff
Integration docs
Example request
{
  "type": "call",
  "longStrike": 100,
  "shortStrike": 105,
  "longPremium": 4,
  "shortPremium": 2
}
Example response
{
  "type": "call",
  "longStrike": 100,
  "shortStrike": 105,
  "longPremium": 4,
  "shortPremium": 2,
  "multiplier": 100,
  "spreadWidth": 5,
  "netPremiumPerShare": 2,
  "position": "debit",
  "netDebitOrCredit": 200,
  "breakeven": 102,
  "maxProfit": 300,
  "maxLoss": 200,
  "riskReward": 1.5
}
Input schema
{
  "type": "object",
  "required": [
    "type",
    "longStrike",
    "shortStrike",
    "longPremium",
    "shortPremium"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "call",
        "put"
      ]
    },
    "longStrike": {
      "type": "number",
      "examples": [
        100
      ]
    },
    "shortStrike": {
      "type": "number",
      "examples": [
        105
      ]
    },
    "longPremium": {
      "type": "number",
      "examples": [
        4
      ]
    },
    "shortPremium": {
      "type": "number",
      "examples": [
        2
      ]
    },
    "multiplier": {
      "type": "number",
      "default": 100
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}