{"uid":"cap_FlG1Fcta00YIOjOBoOzLM","slug":"delx-commerce-binary-expected-value-calculator-c683a872","name":"Delx Commerce — Binary Expected Value 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/binary-ev?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stake":{"type":"integer","description":"Input field: stake."},"true_prob":{"type":"number","description":"Input field: true prob."},"market_price":{"type":"number","description":"Input field: market price."}}},"responseSchema":{"type":"json","example":{"ev":14.58333333333334,"stake":100,"schema":"delx/util-binary-ev/v1","shares":208.3333333333333}},"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_PWpepnHSXmFQfwve9_jJZ","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 the expected value (EV) and number of shares for a binary prediction market position given stake, true probability, and market price","exampleAgentPrompt":"I think the true probability of this event is 60%, the market is priced at 48%, and I want to stake 100 USDC — what's my expected value and how many shares would I get?","exampleUseCases":[{"title":"Evaluating a prediction market bet","prompt":"I'm looking at a binary market where I think the real probability is 65% but it's priced at 52%. If I put in a stake of 200, what's my expected value and how many shares do I receive?"},{"title":"Screening for profitable trading edges","prompt":"Run an EV check for me: my estimated true probability is 0.72, the market price is 0.60, and I want to stake 500 — is this a positive EV trade and how many shares would I get?"},{"title":"Comparing multiple binary market positions","prompt":"For a binary market where my true probability estimate is 0.55 and the current market price is 0.50, what would my EV and share count be if I stake 1000?"}],"resultDescription":"Returns a JSON object containing the computed expected value (ev), the number of shares the stake purchases at the given market price (shares), the original stake echoed back, and a schema identifier (delx/util-binary-ev/v1) for verifiable result attribution.","failureModes":["Missing required fields (stake, true_prob, market_price) result in a 400-level error","market_price of 0 causes division-by-zero or undefined share calculation","true_prob outside [0,1] range may produce nonsensical EV values","Payment failure via x402 (insufficient USDC balance) prevents the call from completing","Network timeout or service unavailability returns no result"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a fast, cheap, single-call computation of binary prediction market EV with verifiable on-chain micropayment settlement. Ideal for agents that are screening multiple prediction market positions programmatically and need a deterministic, auditable calculation rather than an LLM estimate. The $0.001 USDC per-call price makes it economical for high-frequency screening workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:03.956Z","isFirstParty":false,"canonicalSlug":"delx-commerce-binary-expected-value-calculator-c683a872"}