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
intervalstrTime interval of the data to return.1dTrue
providerLiteral['cboe', 'fmp', 'intrinio', 'polygon', 'yfinance']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'cboe' if there is no default.cboeTrue

Data

NameTypeDescription
dateUnion[date, datetime]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.