Skip to main content

strategy.strategies.troubleshoot_close_positions.states.teardown

sleep

TYPE_CHECKING

ActionBundle

teardown

def teardown(strategy: "StrategyTroubleshootClosePositions") -> ActionBundle

Concludes the strategy by closing any active positions and preparing the system for a reset or shutdown. Leaves the system in a state where it can be cleanly initialized again.

Returns:

ActionBundle | None: An action bundle with the teardown actions.