Skip to content

IUniverseSelectionModel

QuantConnect.Algorithm.Framework.Selection.IUniverseSelectionModel

Algorithm framework model that defines the universes to be used by an algorithm

create_universes

create_universes(
    algorithm: QCAlgorithm,
) -> Iterable[Universe]

Creates the universes for this algorithm. Called once after IAlgorithm.initialize

Parameters:

Name Type Description Default
algorithm QCAlgorithm

The algorithm instance to create universes for

required

Returns:

Type Description
Iterable[Universe]

The universes to be used by the algorithm.

get_next_refresh_time_utc

get_next_refresh_time_utc() -> datetime

Gets the next time the framework should invoke the CreateUniverses method to refresh the set of universes.