Lean
$LEAN_TAG$
|
An implementation of IOptionChainProvider that will cache by date option contracts returned by another option chain provider. More...
Public Member Functions | |
CachingOptionChainProvider (IOptionChainProvider optionChainProvider) | |
Initializes a new instance of the CachingOptionChainProvider class More... | |
IEnumerable< Symbol > | GetOptionContractList (Symbol symbol, DateTime date) |
Gets the list of option contracts for a given underlying symbol More... | |
An implementation of IOptionChainProvider that will cache by date option contracts returned by another option chain provider.
Definition at line 27 of file CachingOptionChainProvider.cs.
QuantConnect.Lean.Engine.DataFeeds.CachingOptionChainProvider.CachingOptionChainProvider | ( | IOptionChainProvider | optionChainProvider | ) |
Initializes a new instance of the CachingOptionChainProvider class
optionChainProvider |
Definition at line 36 of file CachingOptionChainProvider.cs.
IEnumerable<Symbol> QuantConnect.Lean.Engine.DataFeeds.CachingOptionChainProvider.GetOptionContractList | ( | Symbol | symbol, |
DateTime | date | ||
) |
Gets the list of option contracts for a given underlying symbol
symbol | The option or the underlying symbol to get the option chain for. Providing the option allows targetting an option ticker different than the default e.g. SPXW |
date | The date for which to request the option chain (only used in backtesting) |
Implements QuantConnect.Interfaces.IOptionChainProvider.
Definition at line 48 of file CachingOptionChainProvider.cs.