read_strategy_module#

read_strategy_module(path)[source]#

Loads a strategy module and returns its factor function.

Reads .py file, checks it is a valid strategy module and then returns :py:class`StrategyModuleInformation` describing the strategy.

Returns:

StrategyModuleInformation instance. For legacy strategies (used for unit test coverage only), we return a factory.

Parameters:

path (Path) –

Return type:

Union[StrategyModuleInformation, StrategyFactory]