Skip to content

IDataProvider

QuantConnect.Interfaces.IDataProvider

Fetches a remote file for a security. Must save the file to Globals.DataFolder.

new_data_request

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

Event raised each time data fetch is finished (successfully or not)

fetch

fetch(key: str) -> Stream

Retrieves data 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.