Expand description
Domain model representing a Bet used by betting-market integrations (e.g. prediction markets).
Structs§
- Bet
- A bet in a betting market.
- BetPosition
- A position comprising one or more bets.
Functions§
- calc_
bets_ pnl - Calculates the combined profit and loss for a slice of bets.
- check_
probability_ invertible - Checks that
probabilityis invertible (not equal to 1.0). - check_
probability_ non_ zero - Checks that
probabilityis non-zero. - inverse_
probability_ to_ bet - Converts a probability and volume into a Bet using the inverse probability.
- probability_
to_ bet - Converts a probability and volume into a Bet.