Skip to main content

py_inverse_probability_to_bet

Function py_inverse_probability_to_bet 

Source
pub fn py_inverse_probability_to_bet(
    probability: Decimal,
    volume: Decimal,
    side: OrderSide,
) -> PyResult<Bet>
Expand description

Converts a probability and volume into a Bet using the inverse probability.

The side is also inverted (BUY becomes SELL and vice versa).