# QuantOracle Options Strategy Optimizer

> QuantOracle Options Strategy Optimizer is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-13).

Optimizes multi-leg options strategies by analyzing risk/reward profiles, Greeks, and market conditions to recommend the best structure for a given objective

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/options/strategy-optimizer
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-9f1a2b98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Kozg6uVEaZ1F-6atR0rd

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 api-quantoracle-dev-9f1a2b98 -d '<json body>'
```

Example prompt: I'm bullish on ETH over the next 30 days with moderate risk tolerance — can you run the QuantOracle strategy optimizer to find the best options structure, comparing bull call spreads and naked calls, targeting a delta around 0.4 with the nearest monthly expiry?

## When to prefer this

Choose this endpoint when you need to go beyond simple options pricing and want an algorithmic recommendation for the best strategy structure given specific objectives, constraints, and market outlook. Ideal for agents helping users construct or optimize multi-leg options trades on crypto underlyings rather than just pricing a single contract.

## Known failure modes

- Invalid or unsupported underlying asset returns a 400 error
- Strike prices outside available chain range cause a validation error
- Conflicting constraints (e.g., impossible risk/reward targets) may return an empty or infeasible result
- Missing required parameters such as expiry or underlying returns a 422 unprocessable entity
- Service unavailable or timeout returns a 503 error
- Insufficient market data for the requested expiry may yield degraded or null recommendations

## How this service works

QuantOracle: /v1/options/strategy-optimizer

## Output

Returns an optimized options strategy recommendation including the specific legs (strikes, expiries, positions), expected payoff profile, key Greeks (delta, gamma, theta, vega), probability of profit, max gain/loss, and a risk/reward ratio — enabling the agent to present or execute the optimal trade structure.

## Example request

```json
{
 "input": {
  "body": {
   "S": 100.5,
   "T": 0.083,
   "q": 0,
   "r": 0.05,
   "sigma": 0.25,
   "capital": 10000,
   "outlook": "bullish",
   "vol_view": "stable"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "title": "StrategyOptimizerIn",
     "required": [
      "S",
      "outlook",
      "T",
      "sigma"
     ],
     "properties": {
      "S": {
       "type": "number",
       "title": "S",
       "description": "Spot price",
       "exclusiveMinimum": 0
      },
      "T": {
       "type": "number",
       "title": "T",
       "description": "Time to expiration in years",
       "exclusiveMinimum": 0
      },
      "q": {
       "type": "number",
       "title": "Q",
       "default": 0,
       "description": "Dividend yield"
      },
      "r": {
       "type": "number",
       "title": "R",
       "default": 0.05,
       "description": "Risk-free rate"
      },
      "sigma": {
       "type": "number",
       "title": "Sigma",
       "description": "Current implied volatility",
       "exclusiveMinimum": 0
      },
      "capital": {
       "type": "number",
       "title": "Capital",
       "default": 10000,
       "description": "Available capital",
       "exclusiveMinimum": 0
      },
      "outlook": {
       "type": "string",
       "title": "Outlook",
       "description": "bullish | bearish | neutral"
      },
      "vol_view": {
       "type": "string",
       "title": "Vol View",
       "default": "stable",
       "description": "rising | falling | stable"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-9f1a2b98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.quantoracle.dev](https://www.zero.xyz/host/api.quantoracle.dev/llms.txt)
