Lean
$LEAN_TAG$
|
Base downloader implementation with some helper methods More...
Protected Member Functions | |
Stream | DownloadOnce (string key, Action< string > download) |
Helper method which guarantees each requested key is downloaded only once concurrently if required based on NeedToDownload More... | |
virtual Stream | GetStream (string key) |
Get's the stream for a given file path More... | |
abstract bool | NeedToDownload (string filePath) |
Main filter to determine if this file needs to be downloaded More... | |
Protected Member Functions inherited from QuantConnect.Lean.Engine.DataFeeds.DefaultDataProvider | |
virtual void | OnNewDataRequest (DataProviderNewDataRequestEventArgs e) |
Event invocator for the NewDataRequest event More... | |
Additional Inherited Members | |
Public Member Functions inherited from QuantConnect.Lean.Engine.DataFeeds.DefaultDataProvider | |
virtual Stream | Fetch (string key) |
Retrieves data from disc to be used in an algorithm More... | |
void | Dispose () |
The stream created by this type is passed up the stack to the IStreamReader The stream is closed when the StreamReader that wraps this stream is disposed More... | |
Events inherited from QuantConnect.Lean.Engine.DataFeeds.DefaultDataProvider | |
EventHandler< DataProviderNewDataRequestEventArgs > | NewDataRequest |
Event raised each time data fetch is finished (successfully or not) More... | |
Events inherited from QuantConnect.Interfaces.IDataProvider | |
EventHandler< DataProviderNewDataRequestEventArgs > | NewDataRequest |
Event raised each time data fetch is finished (successfully or not) More... | |
Base downloader implementation with some helper methods
Definition at line 26 of file BaseDownloaderDataProvider.cs.
|
protected |
Helper method which guarantees each requested key is downloaded only once concurrently if required based on NeedToDownload
key | A string representing where the data is stored |
download | The download operation we want to perform once concurrently per key |
Definition at line 39 of file BaseDownloaderDataProvider.cs.
|
protectedvirtual |
Get's the stream for a given file path
Reimplemented in QuantConnect.Lean.Engine.DataFeeds.DownloaderDataProvider.
Definition at line 57 of file BaseDownloaderDataProvider.cs.
|
protectedpure virtual |
Main filter to determine if this file needs to be downloaded
filePath | File we are looking at |
Implemented in QuantConnect.Lean.Engine.DataFeeds.DownloaderDataProvider, and QuantConnect.Lean.Engine.DataFeeds.ApiDataProvider.