Skip to content

A CLI-based application to calculate implied probability from betting odds

License

Notifications You must be signed in to change notification settings

SanjayShetty01/betting-odds-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betting Odds Convertor

Rust Testing

A Command Line Interface (CLI) application that converts various types of betting odds into implied probabilities. Implied probability provides insight into the likelihood of winning as determined by the betting market.

Table of Contents

About

The Betting Odds Convertor allows users to easily convert different types of betting odds into implied probabilities. It provides valuable insights for bettors, helping them make informed decisions based on market odds.

Supported Betting Odds

The application supports three widely used types of betting odds:

  1. American Moneyline:

    • Denoted by an integer number.
    • A positive American Moneyline indicates the potential profit when wagering $100.
    • A negative American Moneyline indicates the amount needed to wager to win $100.
  2. Decimals:

    • Decimal odds quote the potential returns that would be paid if the bet succeeds in your favor.
  3. Fractions:

    • Fractional odds, like decimal odds, quote the potential returns if the bet succeeds.
    • Presented in a fractional format.

Getting Started

To get started with the Betting Odds Calculator, you'll need to install it on your local machine.

Installation

Installation

From .deb (for Debian/Ubuntu-based systems)

  1. Download the .deb package from the releases page.
  2. Open a terminal and run:
    sudo dpkg -i betting-odds-converter_0.1.0-1_amd64.deb 
  3. Install any missing dependencies:
    sudo apt-get install -f

From .rpm (for Fedora/Red Hat-based systems)

  1. Download the .rpm package from the releases page.
  2. Open a terminal and run:
    sudo rpm -i  betting_odds_converter-0.1.0-1.x86_64.rpm 

From Source

  1. Clone the repository:
    git clone https://github.com/yourusername/betting-odds-calculator.git
    cd betting-odds-calculator
  2. Build the project:
    cargo build --release
  3. The compiled binary will be available in the target/release/ directory. Run it:
    ./target/release/betting-odds-calculator

Usage

Screenshot

image

  1. Select Betting Odds Type:

    • Choose the type of betting odds you want to convert (American Moneyline, Decimals, or Fractions).
  2. Enter Odds Value:

    • Input the odds value associated with your bet.
  3. Implied Probability:

    • The application will calculate and display the implied probability of your selected odds.
  4. Repeat as Needed:

    • You can use the calculator to convert odds as often as you like.

Contributing

Contributions to this project are welcome. Feel free to open issues or submit pull requests to enhance the functionality or fix any bugs.

License

This project is licensed under the MIT License.