# Delx Devig Two-Way

> Delx Devig Two-Way 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).

Removes the overround (vig) from a two-outcome market, converting raw bookmaker probabilities into fair implied probabilities.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/devig-two-way
- 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/delx-devig-two-way-4ecce680
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xhw5-xADwCfLvlSgHudHi

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 delx-devig-two-way-4ecce680 -d '<json body>'
```

Example prompt: The bookmaker is showing p_yes of 0.55 and p_no of 0.55 on a two-outcome market — can you strip out the vig and give me the fair probabilities?

## When to prefer this

Use this endpoint when you have a two-outcome binary market (yes/no, home/away, over/under) and need to strip the bookmaker margin to find fair implied probabilities. Prefer this over manual calculation when you want a consistent, schema-versioned result that also returns the overround explicitly. For markets with more than two outcomes, look for a multi-way devig endpoint instead.

## Known failure modes

- Missing required input: if p_yes or p_no is omitted the request will fail with a validation error
- Invalid probability values: non-numeric or out-of-range inputs (e.g. negative numbers) may return an error
- Zero inputs: p_yes or p_no equal to 0 will cause division errors in the devig calculation
- Sum less than 1: if p_yes + p_no < 1 the overround would be negative, which is an unusual edge case

## How this service works

De-vig a two-way market into fair probabilities that sum to 1. Call when recovering fair probs from a two-outcome book with overround. Returns fair yes/no probs after proportional de-vig 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 object with the devigged fair probabilities for both outcomes (p_yes and p_no that sum to 1.0), the original schema identifier, and the overround (vig amount) extracted from the raw input probabilities.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "p_no": {
   "type": "number",
   "description": "Input field: p no."
  },
  "p_yes": {
   "type": "number",
   "description": "Input field: p yes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "p_no": 0.5,
  "p_yes": 0.5,
  "schema": "delx/util-devig-two-way/v1",
  "overround": 0.1000000000000001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-devig-two-way-4ecce680/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)
