{"uid":"cap_I0-UpWWoxleasz7muYuQh","slug":"delx-binary-expected-value-calculator-787f4f68","name":"Delx Binary Expected Value Calculator","description":"Expected value of buying binary YES at market_price under true_prob. Call when deciding whether a YES buy has positive EV before size. Returns EV per $1 notional on YES 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/binary-ev","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_-ErVyQnCUip4V2d9fA6hL","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) of a binary bet given stake, true probability, and market price","exampleAgentPrompt":"I want to place a $100 stake on a binary prediction market where I think the true probability is 60% but the market is pricing it at 48% — can you calculate the expected value and how many shares I'd get?","exampleUseCases":[{"title":"Evaluating a prediction market trade","prompt":"Before I enter this position, calculate the EV for a $250 stake on a binary market where I believe the true probability is 70% but the current market price is 55%."},{"title":"Checking if a bet has positive EV","prompt":"I'm looking at a binary bet with a $50 stake — my model says true probability is 40% but the market is offering it at 30%. What's the expected value and how many shares would I get?"},{"title":"Comparing multiple market positions","prompt":"Run an EV calculation for a binary market trade: I want to put in 500 units, I estimate the true probability at 80%, and the market price is sitting at 72%. Is this worth it based on expected value?"}],"resultDescription":"Returns a JSON object containing the computed expected value (ev), the original stake, the number of shares received, and a schema identifier. For example: {\"ev\": 14.58, \"stake\": 100, \"schema\": \"delx/util-binary-ev/v1\", \"shares\": 208.33}.","failureModes":["Missing required fields (stake, true_prob, or market_price) result in validation error","true_prob outside [0,1] range may produce nonsensical or error results","market_price of 0 or 1 may cause division-by-zero or extreme share values","Negative stake values may produce invalid output","Non-numeric inputs for numeric fields will fail schema validation"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically evaluate the profitability of a binary prediction market position before executing a trade. Prefer this over manual calculation when you need consistent, machine-readable EV outputs (including shares) as part of an automated trading or decision workflow. Best suited for agents operating in prediction market or binary options contexts where true probability estimates differ from market prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:48:07.285Z","isFirstParty":false}