Skip to content

DataHistory

QuantConnect.Data.DataHistory

DataHistory(
    data: List[QuantConnect_Data_DataHistory_T],
    dataframe: Lazy[Any],
)

Bases: Generic[QuantConnect_Data_DataHistory_T], Object, Iterable[QuantConnect_Data_DataHistory_T]

Historical data abstraction

Creates a new instance

data

data: Iterable[QuantConnect_Data_DataHistory_T]

The data we hold

This codeEntityType is protected.

count

count: int

The current data point count

data_frame

data_frame: Any

This data pandas data frame

__iter__

__iter__() -> Iterator[QuantConnect_Data_DataHistory_T]

get_enumerator

get_enumerator() -> (
    IEnumerator[QuantConnect_Data_DataHistory_T]
)

Returns an enumerator for the data

to_string

to_string() -> str

Default to string implementation