Bankroll

The bankroll object simulates the financial side of simulations. It takes into account things like max drawdown limits and in the future may include risk free rate investments, interest and concepts like that.

Exceptions

exception keeks.utils.RuinError[source]

Bases: Exception

Exception raised when a bankroll experiences a drawdown exceeding the maximum allowed limit.

This exception is typically raised by the BankRoll class when a withdrawal would cause the bankroll to drop below the configured maximum drawdown threshold.