self.withdraw_cashΒΆ

lumibot.strategies.strategy.Strategy.withdraw_cash(self, amount: float, reason: str = 'withdrawal', allow_negative: bool | None = None) float

Withdraw cash during backtesting and return the updated cash balance.