{"uid":"cap_h6Jtz0aLrEKfMJGLC3C9I","slug":"delx-profit-if-yes-36d5fb29","name":"Delx Profit If Yes","description":"Profit if YES resolves after cost basis on shares. Call when net PnL on a YES position at resolution. Returns net profit 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/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_XVQ1-BHT-82YImlQ1BRBi","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 profit from a winning prediction-market position given cost and shares held.","exampleAgentPrompt":"If my prediction market position wins, how much profit will I make — I paid 50 for 200 shares?","exampleUseCases":[{"title":"Prediction market trade profit check","prompt":"I bought into a prediction market — paid 50 and I'm holding 200 shares. If it resolves yes, what's my profit?"},{"title":"Agent portfolio return calculation","prompt":"Before closing my yes position, can you tell me my profit if it wins — my cost was 120 and I have 300 shares?"},{"title":"Comparing prediction market trades","prompt":"I'm deciding between two trades. For the first one I spent 75 on 150 shares — can you calculate the profit if it resolves yes so I can compare?"}],"resultDescription":"Returns a JSON object with the input cost, input shares, the calculated profit amount, and a schema identifier (delx/util-profit-if-yes/v1). For example, cost=50, shares=200 yields profit=150.","failureModes":["Missing required fields (cost or shares) returns a validation error","Non-integer values for cost or shares may cause parsing errors","Negative or zero values for cost or shares may produce unexpected or invalid profit results","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent needs a quick, reliable calculation of profit from a winning yes-resolution in a prediction market, given the number of shares held and the cost paid. It is purpose-built for this specific financial computation and returns a structured result with a versioned schema, making it easy to consume programmatically. Prefer it over general-purpose math tools when operating in prediction-market workflows where structured, auditable results are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:43:01.102Z","isFirstParty":false,"canonicalSlug":"delx-profit-if-yes-36d5fb29"}