|
Lean
$LEAN_TAG$
|
Provides an implementation of IUniverseSelectionModel that subscribes to future chains More...
Public Member Functions | |
| override DateTime | GetNextRefreshTimeUtc () |
Gets the next time the framework should invoke the CreateUniverses method to refresh the set of universes. More... | |
| FutureUniverseSelectionModel (TimeSpan refreshInterval, Func< DateTime, IEnumerable< Symbol >> futureChainSymbolSelector) | |
| Creates a new instance of FutureUniverseSelectionModel More... | |
| FutureUniverseSelectionModel (TimeSpan refreshInterval, Func< DateTime, IEnumerable< Symbol >> futureChainSymbolSelector, UniverseSettings universeSettings) | |
| Creates a new instance of FutureUniverseSelectionModel More... | |
| override IEnumerable< Universe > | CreateUniverses (QCAlgorithm algorithm) |
| Creates the universes for this algorithm. Called once after IAlgorithm.Initialize More... | |
Protected Member Functions | |
| virtual FutureFilterUniverse | Filter (FutureFilterUniverse filter) |
| Defines the future chain universe filter More... | |
Provides an implementation of IUniverseSelectionModel that subscribes to future chains
Definition at line 27 of file FutureUniverseSelectionModel.cs.
| QuantConnect.Algorithm.Framework.Selection.FutureUniverseSelectionModel.FutureUniverseSelectionModel | ( | TimeSpan | refreshInterval, |
| Func< DateTime, IEnumerable< Symbol >> | futureChainSymbolSelector | ||
| ) |
Creates a new instance of FutureUniverseSelectionModel
| refreshInterval | Time interval between universe refreshes |
| futureChainSymbolSelector | Selects symbols from the provided future chain |
Definition at line 45 of file FutureUniverseSelectionModel.cs.
| QuantConnect.Algorithm.Framework.Selection.FutureUniverseSelectionModel.FutureUniverseSelectionModel | ( | TimeSpan | refreshInterval, |
| Func< DateTime, IEnumerable< Symbol >> | futureChainSymbolSelector, | ||
| UniverseSettings | universeSettings | ||
| ) |
Creates a new instance of FutureUniverseSelectionModel
| refreshInterval | Time interval between universe refreshes |
| futureChainSymbolSelector | Selects symbols from the provided future chain |
| universeSettings | Universe settings define attributes of created subscriptions, such as their resolution and the minimum time in universe before they can be removed |
Definition at line 56 of file FutureUniverseSelectionModel.cs.
|
virtual |
Gets the next time the framework should invoke the CreateUniverses method to refresh the set of universes.
Reimplemented from QuantConnect.Algorithm.Framework.Selection.UniverseSelectionModel.
|
virtual |
Creates the universes for this algorithm. Called once after IAlgorithm.Initialize
| algorithm | The algorithm instance to create universes for |
Reimplemented from QuantConnect.Algorithm.Framework.Selection.UniverseSelectionModel.
Definition at line 74 of file FutureUniverseSelectionModel.cs.
|
protectedvirtual |
Defines the future chain universe filter
Reimplemented in QuantConnect.Algorithm.Framework.Selection.OpenInterestFutureUniverseSelectionModel.
Definition at line 100 of file FutureUniverseSelectionModel.cs.