# QuantOracle Hedging Recommender

> QuantOracle Hedging Recommender is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-10).

Recommends optimal hedging strategies (collar, protective put, futures, etc.) for a stock or asset position given risk parameters and cost constraints

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/hedging/recommend?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-88b40e5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y0J4DCI5V41ZgXC3PO01L

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-88b40e5d -d '<json body>'
```

Example prompt: I have a $50,000 long stock position in a stock trading at $125, with 35% volatility and a risk-free rate of 5% — can you recommend the best hedging strategies for a 30-day horizon, keeping my hedge cost under 3% of the position value?

## When to prefer this

Use this endpoint when you need a quantitative, ranked comparison of multiple hedging strategies for a specific equity or asset position, especially when you have cost constraints and want both option-based (collar, protective put) and futures-based approaches evaluated together with scores and dollar costs.

## Known failure modes

- Invalid or missing required fields (r, volatility, asset_price, position_type, position_value, time_horizon_days) return 400 validation error
- Negative or zero asset price or position value returns error
- Unrecognized position_type enum returns 400
- max_hedge_cost_pct of 0 may return empty affordable hedges list
- Service unavailable or timeout returns 5xx error

## How this service works

Free, fast quant finance calculators powered by a deterministic, multi-chain API. Black-Scholes, options profit, Kelly, VaR, crypto liquidation, and more.

## Output

Returns a ranked list of hedging strategies (e.g. collar, protective put, futures inverse hedge) each with a numeric score, cost in USD and as a percentage of position value, affordability flag, description of protection offered, option strikes, max gain/loss if hedged, and breakeven price. Response includes latency in milliseconds.

## Example request

```json
{
 "r": 0.05,
 "volatility": 0.35,
 "asset_price": 125,
 "position_type": "long_stock",
 "position_value": 50000,
 "time_horizon_days": 30,
 "max_hedge_cost_pct": 0.03
}
```

## 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": "HedgingIn",
     "required": [
      "position_type",
      "position_value",
      "asset_price",
      "volatility"
     ],
     "properties": {
      "r": {
       "type": "number",
       "title": "R",
       "default": 0.05,
       "description": "Risk-free rate"
      },
      "volatility": {
       "type": "number",
       "title": "Volatility",
       "description": "Annualized volatility",
       "exclusiveMinimum": 0
      },
      "asset_price": {
       "type": "number",
       "title": "Asset Price",
       "description": "Current spot price",
       "exclusiveMinimum": 0
      },
      "position_type": {
       "type": "string",
       "title": "Position Type",
       "description": "long_stock | short_stock | long_crypto | long_options"
      },
      "position_value": {
       "type": "number",
       "title": "Position Value",
       "description": "Current dollar value of position",
       "exclusiveMinimum": 0
      },
      "time_horizon_days": {
       "type": "integer",
       "title": "Time Horizon Days",
       "default": 30,
       "description": "Hedge time horizon in days",
       "exclusiveMinimum": 0
      },
      "max_hedge_cost_pct": {
       "type": "number",
       "title": "Max Hedge Cost Pct",
       "default": 0.05,
       "description": "Max hedge cost as fraction of position (0.05 = 5%)",
       "exclusiveMinimum": 0
      }
     }
    },
    "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-88b40e5d/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)
