{"uid":"cap_fgT2mjfhKh50jvfMeTSy-","slug":"delx-commerce-kelly-fraction-calculator-3948e813","name":"Delx Commerce — Kelly Fraction 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/kelly-fraction?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"b":{"type":"number","description":"Input field: b."},"win_prob":{"type":"number","description":"Input field: win prob."}}},"responseSchema":{"type":"json","example":{"b":1.2,"kelly":0.175,"schema":"delx/util-kelly-fraction/v1","win_prob":0.55}},"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_mSV1J1zqhYb8mTiFofOk1","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 Kelly Criterion fraction — the optimal bet size as a fraction of bankroll — given a win probability and net odds multiplier.","exampleAgentPrompt":"What's the Kelly fraction for a bet where I have a 55% chance of winning and the net odds are 1.2x?","exampleUseCases":[{"title":"Sports betting position sizing","prompt":"I think there's a 60% chance my team wins and the bookmaker is offering 1.5x net odds — what fraction of my bankroll should I bet according to Kelly?"},{"title":"Algorithmic trading stake sizing","prompt":"My trading signal has a 52% win rate and the average winner is 1.8x the average loser — calculate the Kelly fraction so I know how much of my portfolio to allocate per trade."},{"title":"Poker hand equity sizing","prompt":"I'm running a poker simulation where I have a 65% chance of winning the pot and the pot odds give me a net multiplier of 0.9 — what does Kelly say my optimal bet fraction should be?"}],"resultDescription":"Returns a JSON object with the computed kelly fraction (a number between 0 and 1 representing the optimal wagering fraction of bankroll), the echoed win_prob and b inputs, and a schema identifier string ('delx/util-kelly-fraction/v1'). A kelly value of 0 or negative indicates the bet has no edge and should not be placed.","failureModes":["Missing required fields (b or win_prob) result in a validation error","win_prob values outside [0,1] may return an error or nonsensical result","b values of 0 or negative are mathematically invalid and may cause an error","Payment failure (insufficient USDC) returns HTTP 402 before computation occurs","Network timeout on the x402 payment layer before response is returned"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, stateless computation of the Kelly Criterion fraction without setting up any account or subscription. Ideal for agents that need on-demand bet-sizing or position-sizing calculations embedded in a larger workflow, especially when paying per-result in USDC via x402 is preferable to a monthly API key. Prefer this over rolling your own formula when you want a verifiable, auditable result with a schema version string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:37:26.837Z","isFirstParty":false,"canonicalSlug":"delx-commerce-kelly-fraction-calculator-3948e813"}