{"uid":"cap_2NZZ5c5b5ZEnQtsLcauAN","slug":"delx-commerce-profit-if-yes-calculator-4fa14515","name":"Delx Commerce — Profit If Yes 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/profit-if-yes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"integer","description":"Input field: cost."},"shares":{"type":"integer","description":"Input field: shares."}}},"responseSchema":{"type":"json","example":{"cost":50,"profit":150,"schema":"delx/util-profit-if-yes/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_49YYDgj2eQdA6H0NzieSo","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 profit given a cost and number of shares, returning net profit if a yes outcome occurs","exampleAgentPrompt":"If I bought 200 shares for a total cost of $50, what's my profit if the outcome resolves yes?","exampleUseCases":[{"title":"Prediction market profit check","prompt":"I spent 50 USDC on 200 shares in a prediction market — how much profit do I walk away with if the market resolves yes?"},{"title":"Trading position evaluation","prompt":"I'm holding 500 shares that cost me 120 total. Can you tell me what my profit would be if the yes side wins?"},{"title":"Batch scenario comparison","prompt":"I want to compare two positions: one where I paid 30 for 100 shares and another where I paid 75 for 300 shares — what's the profit on each if yes resolves?"}],"resultDescription":"Returns a JSON object containing the original cost, the number of shares, and the computed profit (as an integer) if the yes outcome is realized, along with a schema identifier (delx/util-profit-if-yes/v1).","failureModes":["Missing required fields (cost or shares) returns an error","Non-integer values for cost or shares may cause validation failure","Network or payment failure over x402 protocol prevents call completion","Negative or zero values for cost/shares may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a quick, on-demand, pay-per-result computation of profit for a yes-resolution outcome in a prediction market or binary event context, especially when operating in an agent pipeline that supports x402 micropayments on Base or Solana with no signup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.455Z","isFirstParty":false,"canonicalSlug":"delx-commerce-profit-if-yes-calculator-4fa14515"}