Lean
$LEAN_TAG$
|
An implementation of IFutureChainProvider that fetches the list of contracts from an external source More...
Public Member Functions | |
LiveFutureChainProvider (IDataCacheProvider dataCacheProvider) | |
Creates a new instance More... | |
override IEnumerable< Symbol > | GetFutureContractList (Symbol symbol, DateTime date) |
Gets the list of future contracts for a given underlying symbol More... | |
Public Member Functions inherited from QuantConnect.Lean.Engine.DataFeeds.BacktestingFutureChainProvider | |
BacktestingFutureChainProvider (IDataCacheProvider dataCacheProvider) | |
Creates a new instance More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QuantConnect.Lean.Engine.DataFeeds.BacktestingChainProvider | |
BacktestingChainProvider (IDataCacheProvider dataCacheProvider) | |
Creates a new instance More... | |
IEnumerable< Symbol > | GetSymbols (Symbol canonicalSymbol, DateTime date) |
Get the contract symbols associated with the given canonical symbol and date More... | |
Static Protected Member Functions inherited from QuantConnect.Lean.Engine.DataFeeds.BacktestingFutureChainProvider | |
static Symbol | GetSymbol (Symbol symbol) |
Helper method to get the symbol to use More... | |
Static Protected Member Functions inherited from QuantConnect.Lean.Engine.DataFeeds.BacktestingChainProvider | |
static bool | IsContractExpired (Symbol symbol, DateTime date) |
Helper method to determine if a contract is expired for the requested date More... | |
Properties inherited from QuantConnect.Lean.Engine.DataFeeds.BacktestingChainProvider | |
IDataCacheProvider | DataCacheProvider [get] |
The data cache instance to use More... | |
An implementation of IFutureChainProvider that fetches the list of contracts from an external source
Definition at line 28 of file LiveFutureChainProvider.cs.
QuantConnect.Lean.Engine.DataFeeds.LiveFutureChainProvider.LiveFutureChainProvider | ( | IDataCacheProvider | dataCacheProvider | ) |
Creates a new instance
dataCacheProvider | The data cache provider instance to use |
Definition at line 34 of file LiveFutureChainProvider.cs.
|
virtual |
Gets the list of future contracts for a given underlying symbol
symbol | The underlying symbol |
date | The date for which to request the future chain (only used in backtesting) |
Reimplemented from QuantConnect.Lean.Engine.DataFeeds.BacktestingFutureChainProvider.
Definition at line 44 of file LiveFutureChainProvider.cs.