|
Lean
$LEAN_TAG$
|
Provides an implementation of IUniverseSelectionModel that subscribes to option 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... | |
| OptionUniverseSelectionModel (TimeSpan refreshInterval, Func< DateTime, IEnumerable< Symbol >> optionChainSymbolSelector) | |
| Creates a new instance of OptionUniverseSelectionModel More... | |
| OptionUniverseSelectionModel (TimeSpan refreshInterval, Func< DateTime, IEnumerable< Symbol >> optionChainSymbolSelector, UniverseSettings universeSettings) | |
| Creates a new instance of OptionUniverseSelectionModel More... | |
| override IEnumerable< Universe > | CreateUniverses (QCAlgorithm algorithm) |
| Creates the universes for this algorithm. Called once after IAlgorithm.Initialize More... | |
Protected Member Functions | |
| virtual OptionFilterUniverse | Filter (OptionFilterUniverse filter) |
| Defines the option chain universe filter More... | |
Provides an implementation of IUniverseSelectionModel that subscribes to option chains
Definition at line 27 of file OptionUniverseSelectionModel.cs.
| QuantConnect.Algorithm.Framework.Selection.OptionUniverseSelectionModel.OptionUniverseSelectionModel | ( | TimeSpan | refreshInterval, |
| Func< DateTime, IEnumerable< Symbol >> | optionChainSymbolSelector | ||
| ) |
Creates a new instance of OptionUniverseSelectionModel
| refreshInterval | Time interval between universe refreshes |
| optionChainSymbolSelector | Selects symbols from the provided option chain |
Definition at line 45 of file OptionUniverseSelectionModel.cs.
| QuantConnect.Algorithm.Framework.Selection.OptionUniverseSelectionModel.OptionUniverseSelectionModel | ( | TimeSpan | refreshInterval, |
| Func< DateTime, IEnumerable< Symbol >> | optionChainSymbolSelector, | ||
| UniverseSettings | universeSettings | ||
| ) |
Creates a new instance of OptionUniverseSelectionModel
| refreshInterval | Time interval between universe refreshes |
| optionChainSymbolSelector | Selects symbols from the provided option 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 OptionUniverseSelectionModel.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 OptionUniverseSelectionModel.cs.
|
protectedvirtual |
Defines the option chain universe filter
Definition at line 97 of file OptionUniverseSelectionModel.cs.