{
  "format": "delx/intent-card/v1",
  "id": "profit-if-yes-api",
  "intent": "Profit if YES for an agent workflow",
  "title": "Profit if YES API for agents",
  "description": "Profit if YES resolves after cost basis on shares. Call when net PnL on a YES position at resolution. Returns net profit 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": [
    "Profit if YES API",
    "Profit if YES for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/profit-if-yes-api",
  "machine_url": "https://commerce.delx.ai/intents/profit-if-yes-api.json",
  "recommendation": {
    "tool_name": "util_profit_if_yes",
    "service_name": "Profit if YES",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/profit-if-yes",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "shares": {
          "description": "Input field: shares.",
          "type": "integer"
        },
        "cost": {
          "description": "Input field: cost.",
          "type": "integer"
        }
      },
      "required": [
        "shares",
        "cost"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "shares": 200,
      "cost": 50
    },
    "example_output": {
      "schema": "delx/util-profit-if-yes/v1",
      "shares": 200,
      "cost": 50,
      "profit": 150
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/profit-if-yes -m POST -H 'x-delx-source: intent-card-profit-if-yes-api' --max-amount 0.001 -b '{\"shares\":200,\"cost\":50}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-profit-if-yes-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/profit-if-yes"
  }
}
