{"uid":"cap_47s-5U-Abx-oQceR4gHO0","slug":"delx-commerce-cost-for-shares-calculator-85956b4d","name":"Delx Commerce — Cost for Shares 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/cost-for-shares?utm_source=zero.xyz","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_cNeUCxxuh7boH0F8l_PGc","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 total cost for purchasing a given number of shares at a specified price per share.","exampleAgentPrompt":"How much would it cost in total to buy 200 shares at $0.25 each?","exampleUseCases":[{"title":"Pre-trade cost verification","prompt":"Before I place my order, can you calculate what 500 shares at $1.20 each will cost me in total?"},{"title":"Budget planning for share purchase","prompt":"I have a budget of $100 — can you tell me what the total cost would be if I buy 350 shares at $0.28 each, so I can check if I can afford it?"},{"title":"Confirming fractional share pricing","prompt":"What's the exact total cost for buying 75 shares priced at $0.50 per share?"}],"resultDescription":"Returns a JSON object with the computed total cost (e.g. cost: 50), the input price per share, the input number of shares, and a schema identifier string (e.g. 'delx/util-cost-for-shares/v1').","failureModes":["Missing required fields (price or shares) returns an error","Non-integer shares value may cause validation failure","Negative or zero values for price or shares may return an error or unexpected result","Payment failure via x402 protocol (insufficient USDC balance) prevents response"],"whenToPreferThis":"Use this endpoint when you need a fast, verifiable, pay-per-result calculation of total share purchase cost given a unit price and share count — especially in agent workflows where no signup or persistent session is needed and payment via USDC on Base or Solana is available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.466Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cost-for-shares-calculator-85956b4d"}