Skip to content

ProcessedDataProvider

QuantConnect.Lean.Engine.DataFeeds.ProcessedDataProvider

ProcessedDataProvider()

Bases: Object, IDataProvider, IDisposable

A data provider that will check the processed data folder first

Creates a new instance

new_data_request

new_data_request: _EventContainer[
    Callable[
        [Object, DataProviderNewDataRequestEventArgs], Any
    ],
    Any,
]

Ignored

dispose

dispose() -> None
dispose(disposing: bool) -> None

Signature descriptions:

  • Disposes of resources

  • Disposes of the internal data provider

fetch

fetch(key: str) -> Stream

Retrieves data from disc to be used in an algorithm

Parameters:

Name Type Description Default
key str

A string representing where the data is stored

required

Returns:

Type Description
Stream

A Stream of the data requested.

read_lines

read_lines(file: str) -> Sequence[str]

Helper method to stream read lines from a file

Parameters:

Name Type Description Default
file str

The file path to read from

required

Returns:

Type Description
Sequence[str]

Enumeration of lines in file.