# Investing Math – Option Payoff Calculator

> Investing Math – Option Payoff Calculator is a paid API for AI agents from invest-math.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates expiry profit/loss for a long or short call or put option, including break-even price, maximum gain, maximum loss, and a payoff table across price scenarios.

## Facts

- Endpoint: GET https://invest-math.x402tookit.com/option-payoff?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/investing-math-option-payoff-calculator-08b6c92e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mAqkABlN9ldb5gvm_Mn4E

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability investing-math-option-payoff-calculator-08b6c92e
```

Example prompt: What's the break-even, max gain, max loss, and full payoff table for a long call option with a $150 strike price and a $4.50 premium per share, evaluated at a spot price of $165, for 2 contracts?

## When to prefer this

Use this endpoint when you need precise quantitative options payoff analysis at expiry — especially break-even, max gain/loss, and a full payoff table — for a single-leg long or short call or put. Prefer this over general financial calculators when the user is analyzing a specific options position's risk/reward profile with defined parameters. Not suitable for multi-leg strategies (spreads, straddles) or real-time options pricing (Black-Scholes).

## Known failure modes

- Missing required query parameters (type, side, strike, premium) returns an error
- Invalid enum values for type (not 'call'/'put') or side (not 'long'/'short') cause rejection
- Numeric fields (strike, premium, spot) passed as strings may fail validation
- Payment of 0.02 USDC not fulfilled results in HTTP 402 Payment Required
- Extreme or nonsensical values (e.g. negative strike) may return degraded or null results

## How this service works

Expiry profit and loss for a long or short call or put: break-even, maximum gain and loss, and a payoff table.

## Output

Returns a structured object including the break-even price, maximum gain (string, e.g. 'unlimited' for long calls), maximum loss (number), a payoff table of profit/loss values across a range of prices at expiry, P&L at a specific spot price, total premium paid/received, and a natural language summary and verdict about the position.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "type",
      "side",
      "strike",
      "premium"
     ],
     "properties": {
      "side": {
       "type": "string",
       "description": "long or short"
      },
      "spot": {
       "type": "number",
       "description": "Price at expiry to evaluate"
      },
      "type": {
       "type": "string",
       "description": "call or put"
      },
      "strike": {
       "type": "number",
       "description": "Strike price"
      },
      "premium": {
       "type": "number",
       "description": "Premium per share paid (long) or received (short)"
      },
      "contracts": {
       "type": "integer",
       "description": "Contracts of 100 shares, default 1"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "side": {
       "type": [
        "null",
        "string"
       ]
      },
      "type": {
       "type": [
        "null",
        "string"
       ]
      },
      "table": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "profitLoss": {
          "type": [
           "null",
           "number"
          ]
         },
         "priceAtExpiry": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "atSpot": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "price": {
         "type": [
          "null",
          "number"
         ]
        },
        "profitLoss": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "strike": {
       "type": [
        "null",
        "number"
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/investing-math-option-payoff-calculator-08b6c92e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from invest-math.x402tookit.com](https://www.zero.xyz/host/invest-math.x402tookit.com/llms.txt)
