# Option Payoff Points

> Option Payoff Points is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes spot-to-payoff data points for multi-leg options strategies using local closed-form math, suitable for drawing payoff diagrams offline.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/option-payoff-points
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/option-payoff-points-df28b0f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8KhpKFmZe_C7lMfLOP1VG

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 option-payoff-points-df28b0f0 -d '<json body>'
```

Example prompt: Can you calculate the payoff diagram points for a bull call spread with a long call at strike 100 (premium 5) and short call at strike 110 (premium 2), each with qty 1, sampled at spot prices from 90 to 120 in steps of 5?

## When to prefer this

Choose this endpoint when you need fast, deterministic, offline payoff calculations for multi-leg options strategies without any live market data, RPC calls, or API keys. Ideal for generating payoff diagram data for visualization, risk illustration, or educational purposes. Preferred over live-pricing endpoints when you only need expiration payoff math and not real-time greeks or market quotes.

## Known failure modes

- Missing or malformed legs array — returns error if type, strike, qty, or premium fields are absent
- Empty spots array — no payoff points returned
- Invalid option type string (must be 'call' or 'put') — may return error or zero payoff
- Network or payment failure via x402 protocol — no result returned
- Extreme strike/spot values causing floating-point edge cases

## How this service works

Payoff points for multi-leg options at sample spots. Call when diagramming a structured option package offline. Returns points list of spot→payoff as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON list of {spot, payoff} pairs — one entry per sampled spot price — computed deterministically from the supplied legs using local closed-form math. Each payoff reflects the net profit/loss across all legs at expiration at that spot, accounting for strikes, quantities, and premiums.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "legs": {
   "type": "array",
   "description": "Option legs [{type,strike,qty,premium}]"
  },
  "spots": {
   "type": "array",
   "description": "Spot samples for payoff diagram"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "points": [
   {
    "spot": 90,
    "payoff": -2
   },
   {
    "spot": 100,
    "payoff": -2
   },
   {
    "spot": 110,
    "payoff": 8
   }
  ],
  "schema": "delx/util-option-payoff-points/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/option-payoff-points-df28b0f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
