{"uid":"cap_Xhw5-xADwCfLvlSgHudHi","slug":"delx-devig-two-way-4ecce680","name":"Delx Devig Two-Way","description":"De-vig a two-way market into fair probabilities that sum to 1. Call when recovering fair probs from a two-outcome book with overround. Returns fair yes/no probs after proportional de-vig 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/devig-two-way","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"p_no":{"type":"number","description":"Input field: p no."},"p_yes":{"type":"number","description":"Input field: p yes."}}},"responseSchema":{"type":"json","example":{"p_no":0.5,"p_yes":0.5,"schema":"delx/util-devig-two-way/v1","overround":0.1000000000000001}},"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_m1iwn2l01P9IzRGJec_Pv","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":"Removes the overround (vig) from a two-outcome market, converting raw bookmaker probabilities into fair implied probabilities.","exampleAgentPrompt":"The bookmaker is showing p_yes of 0.55 and p_no of 0.55 on a two-outcome market — can you strip out the vig and give me the fair probabilities?","exampleUseCases":[{"title":"Sports betting edge calculator","prompt":"I have a two-way sports market where the book implies p_yes = 0.52 and p_no = 0.53. Remove the overround and tell me the fair probability for each side so I can see if there's an edge."},{"title":"Prediction market fair price check","prompt":"On this binary prediction market the prices are p_yes = 0.6 and p_no = 0.45. Devig those and show me the true implied probability for yes and no."},{"title":"Bookmaker margin analysis","prompt":"Can you calculate how much vig the bookmaker is charging? The raw odds imply p_yes = 0.56 and p_no = 0.56 on a coin-flip style event."}],"resultDescription":"Returns a JSON object with the devigged fair probabilities for both outcomes (p_yes and p_no that sum to 1.0), the original schema identifier, and the overround (vig amount) extracted from the raw input probabilities.","failureModes":["Missing required input: if p_yes or p_no is omitted the request will fail with a validation error","Invalid probability values: non-numeric or out-of-range inputs (e.g. negative numbers) may return an error","Zero inputs: p_yes or p_no equal to 0 will cause division errors in the devig calculation","Sum less than 1: if p_yes + p_no < 1 the overround would be negative, which is an unusual edge case"],"whenToPreferThis":"Use this endpoint when you have a two-outcome binary market (yes/no, home/away, over/under) and need to strip the bookmaker margin to find fair implied probabilities. Prefer this over manual calculation when you want a consistent, schema-versioned result that also returns the overround explicitly. For markets with more than two outcomes, look for a multi-way devig endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:48.913Z","isFirstParty":false}