Function calc_bets_pnl

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

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