{"uid":"cap_WqkQVxyAXAJOS69ZojF3_","slug":"delx-market-roi-calculator-b7ffdd65","name":"Delx Market ROI Calculator","description":"ROI from entry price and resolution payout on a binary share. Call when post-resolution performance of a prediction-market fill. Returns roi and 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/market-roi?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"entry":{"type":"number","description":"Input field: entry."},"resolved_yes":{"type":"boolean","description":"Input field: resolved yes."}}},"responseSchema":{"type":"json","example":{"roi":1.5,"entry":0.4,"schema":"delx/util-market-roi/v1","resolved_yes":true}},"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_UcKz9Uw6Vid9kDRYIfULR","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 return on investment (ROI) for a prediction market position given an entry price and resolution outcome.","exampleAgentPrompt":"What's the ROI on a prediction market position I entered at 0.4 if it resolved yes?","exampleUseCases":[{"title":"Prediction market trade review","prompt":"I entered a prediction market at a price of 0.35 and it resolved yes — what's my ROI on that trade?"},{"title":"Evaluating a losing position","prompt":"I bought into a market at 0.6 but it resolved no — can you calculate the ROI so I know how much I lost?"},{"title":"Agent portfolio performance check","prompt":"For each of my closed market positions, calculate the ROI given my entry price and whether it resolved yes or no, starting with entry 0.5 resolved yes."}],"resultDescription":"Returns a JSON object containing the computed ROI as a decimal (e.g. 1.5), the echoed entry price, the resolution flag (resolved_yes), and a schema identifier string (delx/util-market-roi/v1).","failureModes":["Missing required 'entry' field returns a validation error","Entry price outside valid range (e.g. negative or >1) may produce undefined results","Invalid type for resolved_yes (non-boolean) causes schema rejection","Network or payment failure returns 402 or 5xx"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic computation of ROI for a binary prediction market position and already have the entry price and resolution outcome. Prefer it over manual calculation when operating inside an agent workflow that needs consistent schema output (delx/util-market-roi/v1) for downstream processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:54:56.815Z","isFirstParty":false,"canonicalSlug":"delx-market-roi-calculator-b7ffdd65"}