{"uid":"cap_HVm2o_45k1WeCnmjnYs8c","slug":"delx-commerce-shares-from-budget-calculator-c559cc33","name":"Delx Commerce — Shares from Budget Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/shares-from-budget?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"price":{"type":"number","description":"Input field: price."},"budget":{"type":"integer","description":"Input field: budget."}}},"responseSchema":{"type":"json","example":{"price":0.25,"budget":50,"schema":"delx/util-shares-from-budget/v1","shares":200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X8pfmvE_qUse6v6EKuiSi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the number of shares purchasable given a per-share price and a total budget","exampleAgentPrompt":"If each share costs $0.25 and I have a budget of $50, how many shares can I buy?","exampleUseCases":[{"title":"Agent portfolio allocation planner","prompt":"I have $200 to invest and shares are priced at $0.50 each — how many shares does that get me?"},{"title":"Crowdfunding slot calculator","prompt":"We're selling shares at $1.25 each and have a $500 backer budget — how many shares should we allocate to them?"},{"title":"Token distribution planning","prompt":"If each token unit costs $0.10 and our treasury budget is $1000, how many units can we distribute?"}],"resultDescription":"Returns a JSON object containing the input price per share, the input budget, a schema identifier ('delx/util-shares-from-budget/v1'), and the computed number of shares (integer) that can be purchased within the budget at the given price.","failureModes":["Missing required fields (price or budget) result in an error response","Price of zero causes division-by-zero error","Negative price or budget values may return an error or unexpected result","Budget smaller than price may return zero shares","Non-numeric input types cause schema validation failure"],"whenToPreferThis":"Use this endpoint when an agent needs a quick, pay-per-call, no-signup arithmetic computation to determine how many shares fit within a given budget. It is ideal for agent workflows that already operate in the Delx x402 micropayment ecosystem and need a verifiable, on-chain-paid utility calculation without maintaining their own math logic or standing API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.821Z","isFirstParty":false,"canonicalSlug":"delx-commerce-shares-from-budget-calculator-c559cc33"}