{
  "x402Version": 2,
  "id": 4057,
  "slug": "4057",
  "resource": "https://api.delx.ai/api/v1/x402/cost-for-shares",
  "description": "Cash cost to buy a target share count at price. Call when pre-trade cash check for prediction-market size targets. Returns total cost 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.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "28heAMpFkeUJsL7o7apiK4oJwZWq2fUHinRwbgYYsemG",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "signal-normalize",
      "info": {
        "input": {
          "body": {
            "price": 0.25,
            "shares": 200
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "cost": 50,
            "price": 0.25,
            "schema": "delx/util-cost-for-shares/v1",
            "shares": 200
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "properties": {
              "body": {
                "additionalProperties": true,
                "properties": {
                  "price": {
                    "description": "Input field: price.",
                    "type": "number"
                  },
                  "shares": {
                    "description": "Input field: shares.",
                    "type": "integer"
                  }
                },
                "required": [
                  "shares",
                  "price"
                ],
                "type": "object"
              },
              "bodyType": {
                "const": "json",
                "type": "string"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "additionalProperties": true,
            "description": "Bounded first-party JSON result; input is processed in memory and not retained.",
            "properties": {
              "cost": {
                "type": "number"
              },
              "price": {
                "type": "number"
              },
              "schema": {
                "type": "string"
              },
              "shares": {
                "type": "number"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "input",
          "output"
        ],
        "type": "object"
      },
      "serviceName": "Cost for Shares",
      "summary": "Cash cost to buy a target share count at price. Call when pre-trade cash check for prediction-market size targets. Returns total cost 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.",
      "tags": [
        "x402",
        "agents",
        "local-first",
        "micro-usdc",
        "pay-per-call"
      ]
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "api.delx.ai",
  "lastUpdated": "2026-09-07T11:32:26.18Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-07T11:32:25.558Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.delx.ai",
    "manifest_name": "api.delx.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}