{"uid":"cap_gC6TqbNFIAJRW0X1I_5zj","slug":"delx-commerce-market-roi-calculator-79b097c4","name":"Delx Commerce Market ROI 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/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_Keu4l8oi63gakN8koF_2X","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 return-on-investment (ROI) for a prediction market position given an entry price and resolution outcome","exampleAgentPrompt":"I entered a prediction market at 0.4 and it resolved yes — what's my ROI?","exampleUseCases":[{"title":"Verify profit after market resolution","prompt":"The prediction market I was in just resolved yes and I bought in at a price of 0.35 — can you calculate my ROI for me?"},{"title":"Evaluate historical prediction trade performance","prompt":"I had a position with an entry price of 0.6 in a market that ended up resolving yes. What was my return on investment?"},{"title":"Compare ROI across multiple trade scenarios","prompt":"If a market resolved yes and my entry was 0.25, what ROI would I have earned? I want to understand how profitable that position would have been."}],"resultDescription":"Returns a JSON object with the computed ROI multiplier (e.g. 1.5 meaning 150% return), the echoed entry price, the resolution status (yes/no), and a schema identifier string (delx/util-market-roi/v1).","failureModes":["Missing required fields (entry or resolved_yes) returns a validation error","Entry price of 0 or negative may cause division errors or undefined ROI","resolved_yes set to false may return ROI of 0 or negative depending on market mechanics","Network or payment failure via x402 protocol prevents call from completing"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001 USDC), verifiable computation of prediction market ROI for a binary (yes/no) resolved market, especially in an agent workflow where no signup or API key is required and payment is handled via x402 on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:43.704Z","isFirstParty":false,"canonicalSlug":"delx-commerce-market-roi-calculator-79b097c4"}