{
  "format": "delx/intent-card/v1",
  "id": "devig-two-way-api",
  "intent": "Two-Way De-vig for an agent workflow",
  "title": "Two-Way De-vig API for agents",
  "description": "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.",
  "keywords": [
    "Two-Way De-vig API",
    "Two-Way De-vig for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/devig-two-way-api",
  "machine_url": "https://commerce.delx.ai/intents/devig-two-way-api.json",
  "recommendation": {
    "tool_name": "util_devig_two_way",
    "service_name": "Two-Way De-vig",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/devig-two-way",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "p_yes": {
          "description": "Input field: p yes.",
          "type": "number"
        },
        "p_no": {
          "description": "Input field: p no.",
          "type": "number"
        }
      },
      "required": [
        "p_yes",
        "p_no"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "p_yes": 0.55,
      "p_no": 0.55
    },
    "example_output": {
      "schema": "delx/util-devig-two-way/v1",
      "p_yes": 0.5,
      "p_no": 0.5,
      "overround": 0.10000000000000009
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/devig-two-way -m POST -H 'x-delx-source: intent-card-devig-two-way-api' --max-amount 0.001 -b '{\"p_yes\":0.55,\"p_no\":0.55}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-devig-two-way-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/devig-two-way"
  }
}
