FA-84583 / Betting odds conversion / Member archive
Equal best prices attributed to the wrong bookmaker · case 03
The stake is routed to a different bookmaker than the stated tie rule picks.
Case contract
Arbitrage finder. books rows are [bookmaker, outcome, decimal price]. For each outcome take the highest price; ties go to the alphabetically first bookmaker. S = sum of 1/best price. If S >= 1 return ["no arb"]. Otherwise stake_i = floor(total * (1/d_i) / S) cents; guaranteed return = min over outcomes of floor(stake_i * d_i). Return ["arb", [[outcome, bookmaker, stake] sorted by outcome], guaranteed return - sum of stakes].
Why this case matters
Odds comparison tools flag sure bets and split a bankroll across bookmakers.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: bookmaker tiebreak | ["arb", [["away", "kilo", 15318], ["home", "kilo", 9681]], 1041] | ["arb", [["away", "kilo", 15318], ["home", "delta", 9681]], 1041] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗