{
  "format": "delx/intent-card/v1",
  "id": "binary-ev-api",
  "intent": "Binary EV (Buy Yes) for an agent workflow",
  "title": "Binary EV (Buy Yes) API for agents",
  "description": "Expected value of buying binary YES at market_price under true_prob. Call when deciding whether a YES buy has positive EV before size. Returns EV per $1 notional on YES 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": [
    "Binary EV (Buy Yes) API",
    "Binary EV (Buy Yes) for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/binary-ev-api",
  "machine_url": "https://commerce.delx.ai/intents/binary-ev-api.json",
  "recommendation": {
    "tool_name": "util_binary_ev",
    "service_name": "Binary EV (Buy Yes)",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/binary-ev",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "true_prob": {
          "description": "Input field: true prob.",
          "type": "number"
        },
        "market_price": {
          "description": "Input field: market price.",
          "type": "number"
        },
        "stake": {
          "description": "Input field: stake.",
          "type": "integer"
        }
      },
      "required": [
        "true_prob",
        "market_price",
        "stake"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "true_prob": 0.55,
      "market_price": 0.48,
      "stake": 100
    },
    "example_output": {
      "schema": "delx/util-binary-ev/v1",
      "stake": 100,
      "shares": 208.33333333333334,
      "ev": 14.583333333333343
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/binary-ev -m POST -H 'x-delx-source: intent-card-binary-ev-api' --max-amount 0.001 -b '{\"true_prob\":0.55,\"market_price\":0.48,\"stake\":100}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-binary-ev-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/binary-ev"
  }
}
