betting

Prediction Markets Open source · MIT Pure compute 9 commands 1.5k installs

Betting analysis — odds conversion, de-vigging, edge detection, Kelly criterion, arbitrage detection, parlay analysis, and line movement.

View source

About

Betting analysis — odds conversion, de-vigging, edge detection, Kelly criterion, arbitrage detection, parlay analysis, and line movement. Pure computation, no API calls. Works with odds from any source: ESPN (American odds), Polymarket (decimal probabilities), Kalshi (integer probabilities).

Commands 9

convert_odds
--odds[--from_format]

Registered in the CLI — see SKILL.md for details.

devig
--odds[--format]

Registered in the CLI — see SKILL.md for details.

find_edge
--fair_prob--market_prob

Registered in the CLI — see SKILL.md for details.

evaluate_bet
--book_odds--market_prob[--book_format][--outcome]

Registered in the CLI — see SKILL.md for details.

find_arbitrage
--market_probs[--labels]

Registered in the CLI — see SKILL.md for details.

parlay_analysis
--legs--parlay_odds[--odds_format][--correlation]

Registered in the CLI — see SKILL.md for details.

line_movement
[--open_odds][--close_odds][--open_line][--close_line][--market_type]

Registered in the CLI — see SKILL.md for details.

kelly_criterion
--fair_prob--market_prob

Registered in the CLI — see SKILL.md for details.

matchup_probability
--bpi_a--bpi_b

Registered in the CLI — see SKILL.md for details.

Example Prompts

  • Is there edge on the Lakers game? ESPN has them at -150 and Polymarket has them at 52 cents
  • Can I arb this? Polymarket has home at 48 cents and Kalshi has away at 49 cents
  • Is this 3-leg parlay at +600 worth it?
  • The line moved from -140 to -160, what does that mean?
  • What are the true odds for this spread? Both sides are -110

Quick Start

# CLI
sports-skills betting line_movement
# Python
from sports_skills import betting
betting.line_movement()