self.run_live

lumibot.strategies.strategy.Strategy.run_live(self, run_once: bool | None = None)

Executes the trading strategy in Live mode

Parameters:
  • run_once (bool, optional) – Run one trading iteration and exit instead of starting the normal always-on scheduler loop. If omitted, this is enabled automatically when LUMIBOT_SCHEDULED_EXECUTION is truthy.

  • Returns – None