self.get_cashΒΆ
- lumibot.strategies.strategy.Strategy.get_cash(self)
Get the current cash value in your account.
In live trading this forces a fresh broker balance refresh. If the broker cannot return a fresh value, this returns None and leaves the cached cash value unchanged.
- Parameters:
None
- Returns:
The current cash value. This is the amount of cash you have in your account, which is the amount of money you can use to buy assets. For crypto assets, this is the amount of the quote asset you have in your account (eg. USDT if that is your quote asset). Returns None if the live broker refresh fails.
- Return type:
float or None