self.get_portfolio_value#

lumibot.strategies.strategy.Strategy.get_portfolio_value(self)

Query the broker for the latest portfolio value (cash plus net equity).

Notes#

This call requests fresh balances from the broker and is slower than reading the cached self.portfolio_value property. Use the property when you only need the last observed value inside a tight loop.

Returns#

float

Liquidation value of the account (cash plus all open positions). For crypto brokers the figure is denominated in the configured quote asset (for example USDT).