{
  "format": "delx/intent-card/v1",
  "id": "shares-from-budget-api",
  "intent": "Shares from Budget for an agent workflow",
  "title": "Shares from Budget API for agents",
  "description": "Shares purchasable for a budget at a given share price. Call when sizing prediction-market orders from cash budget. Returns shares and residual cash 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": [
    "Shares from Budget API",
    "Shares from Budget for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/shares-from-budget-api",
  "machine_url": "https://commerce.delx.ai/intents/shares-from-budget-api.json",
  "recommendation": {
    "tool_name": "util_shares_from_budget",
    "service_name": "Shares from Budget",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/shares-from-budget",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "budget": {
          "description": "Input field: budget.",
          "type": "integer"
        },
        "price": {
          "description": "Input field: price.",
          "type": "number"
        }
      },
      "required": [
        "budget",
        "price"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "budget": 50,
      "price": 0.25
    },
    "example_output": {
      "schema": "delx/util-shares-from-budget/v1",
      "budget": 50,
      "price": 0.25,
      "shares": 200
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/shares-from-budget -m POST -H 'x-delx-source: intent-card-shares-from-budget-api' --max-amount 0.001 -b '{\"budget\":50,\"price\":0.25}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-shares-from-budget-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/shares-from-budget"
  }
}
