This function will calculate the edge of a given bet based on your predicted win probability of the bet and the bet's odds.
Arguments
- win_prob
Your predicted probability for winning the bet (0-1)
- odds
The odds for the given bet
- type
Type of odds. Possible values are:
us
, American Oddsdec
, Decimal Oddsfrac
, Fractional Odds