OneTwoLoopDemo
onetwoloop.com →
Open source · Live sandbox

betting-math-kit does the odds math for you

Odds conversion, de-vigging, and Kelly staking. Every result below is computed live by the open-source betting_math_kit Python library running in a locked-down, no-egress container.

american_to_decimal · decimal_to_american

Odds converter

Convert between American and decimal odds, and see the implied win probability the price is charging you.

devig · get_vig

Devig a two-way market

Enter both sides of a market to strip the bookmaker's margin and recover the fair, no-vig probabilities.

Bookmaker vig removed
kelly_fraction · calculate_edge

Kelly stake sizer

Given your model's win probability and the book's price, how much of your bankroll should you actually bet?

betting-math-kit is MIT-licensed, pure Python, zero deps. This demo container is read-only with no network egress. Educational only, not betting advice.

A OneTwoLoop demo