Skip to main content

Utility library for converting between betting odds

Project description

Betting

Utility library to convert between betting odds.

Converts to/from:

  • American/Moneyline odds
  • Decimal odds
  • Fractional odds
  • Implied probability

Functions

  • american_odds_to_decimal_odds(american_odds: float) -> float
  • american_odds_to_fractional_odds(american_odds: float) -> Tuple[float, float]
  • american_odds_to_probability(american_odds: float) -> float
  • decimal_odds_to_american_odds(decimal_odds: float) -> float
  • decimal_odds_to_fractional_odds(decimal_odds: float) -> Tuple[float, float]
  • decimal_odds_to_probability(decimal_odds: float) -> float
  • fractional_odds_to_american_odds(numerator: float, denominator: float) -> float
  • fractional_odds_to_decimal_odds(numerator: float, denominator: float) -> float
  • fractional_odds_to_probability(numerator: float, denominator: float) -> float
  • probability_to_american_odds(p: float) -> float
  • probability_to_decimal_odds(p: float) -> float
  • probability_to_fractional_odds(p: float) -> Tuple[float, float]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

betting-0.0.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

betting-0.0.2-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page