Skip to main content

calc_bets_pnl_checked

Function calc_bets_pnl_checked 

Source
pub fn calc_bets_pnl_checked(bets: &[Bet]) -> Result<Decimal>
Expand description

Calculates the combined profit and loss for a slice of bets.

ยงErrors

Returns an error if a payoff or the running total overflows.