Skip to main content

Index Historical


Implementation details

Class names

Model nameParameters classData class
IndexHistoricalIndexHistoricalQueryParamsIndexHistoricalData

Import Statement

from openbb_core.provider.standard_models.index_historical import (
IndexHistoricalData,
IndexHistoricalQueryParams,
)

Parameters

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): cboe, fmp, intrinio, polygon, yfinance.False
start_dateUnion[date, str]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[date, str]End date of the data, in YYYY-MM-DD format.NoneTrue

Data

NameTypeDescription
dateUnion[Union[date, datetime], str]The date of the data.
openAnnotated[float, Strict(strict=True)]The open price.
highAnnotated[float, Strict(strict=True)]The high price.
lowAnnotated[float, Strict(strict=True)]The low price.
closeAnnotated[float, Strict(strict=True)]The close price.
volumeintThe trading volume.