Catalog/opt-butterfly-payoff

Calculators

Long butterfly payoff API

Compute the two breakevens, max profit (lower wing width minus debit, at the body strike), max loss (net debit), and return on risk for a long butterfly spread. Deterministic three-strike math. Answers 'where does my butterfly break even','what's the max profit on this fly','what's my return on risk for a butterfly'.

Price$0.03per request
MethodPOST
Route/v1/calc/opt-butterfly-payoff
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
optionsbutterflycalcpayoffdebitneutralderivativestrading
API URLhttps://x402.hexl.dev/v1/calc/opt-butterfly-payoff
Integration docs
Example request
{
  "lowerStrike": 95,
  "bodyStrike": 100,
  "upperStrike": 105,
  "netDebit": 1.2
}
Example response
{
  "lowerStrike": 95,
  "bodyStrike": 100,
  "upperStrike": 105,
  "netDebit": 1.2,
  "multiplier": 100,
  "lowerBreakeven": 96.2,
  "upperBreakeven": 103.8,
  "maxProfit": 380,
  "maxLoss": 120,
  "maxProfitAt": 100,
  "returnOnRisk": 3.1667
}
Input schema
{
  "type": "object",
  "required": [
    "lowerStrike",
    "bodyStrike",
    "upperStrike",
    "netDebit"
  ],
  "properties": {
    "lowerStrike": {
      "type": "number",
      "examples": [
        95
      ]
    },
    "bodyStrike": {
      "type": "number",
      "examples": [
        100
      ]
    },
    "upperStrike": {
      "type": "number",
      "examples": [
        105
      ]
    },
    "netDebit": {
      "type": "number",
      "examples": [
        1.2
      ]
    },
    "multiplier": {
      "type": "number",
      "default": 100
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}