{"uid":"cap_h-NHCUL4AVe1KoH4ai2IY","slug":"delx-cost-for-shares-85cc9020","name":"Delx 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.","url":"https://api.delx.ai/api/v1/x402/cost-for-shares","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"price":{"type":"number","description":"Input field: price."},"shares":{"type":"integer","description":"Input field: shares."}}},"responseSchema":{"type":"json","example":{"cost":50,"price":0.25,"schema":"delx/util-cost-for-shares/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_K-7ZeSmgqJednI5KmYfzj","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":"Computes the total cost for a given number of shares at a specified unit price","exampleAgentPrompt":"What is the total cost to buy 200 shares at $0.25 each?","exampleUseCases":[{"title":"Pre-trade cost check for share block","prompt":"Before I place the order, how much will it cost me in total to buy 500 shares at $1.20 per share?"},{"title":"Portfolio allocation calculator","prompt":"I want to allocate funds across several lots — start by telling me the total cost for 350 shares priced at $4.50 each."},{"title":"Agent-automated share purchase pricing","prompt":"My agent needs to confirm the total spend before executing: calculate the cost for 1000 shares at $0.08 per share."}],"resultDescription":"Returns a JSON object containing the computed total cost (price × shares), the unit price, the number of shares, and a schema identifier string (e.g. 'delx/util-cost-for-shares/v1').","failureModes":["Missing required fields (price or shares) returns a validation error","Non-integer shares value may cause a type error","Negative or zero values for price or shares may produce unexpected results","Network or payment authorization failure returns a 402 or 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent needs a quick, deterministic total-cost computation for a share quantity and unit price, particularly inside automated trading, portfolio management, or pre-trade validation workflows where consistent schema-tagged responses are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:17:15.502Z","isFirstParty":false}