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, intrinio, polygon, yfinance.False
start_dateUnion[str, date]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[str, date]End date of the data, in YYYY-MM-DD format.NoneTrue
intervalstrTime interval of the data to return.1dTrue
limitintThe number of data entries to return.10000True
sortLiteral['asc', 'desc']Sort the data in ascending or descending order.ascTrue
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.
openfloatThe open price.
highfloatThe high price.
lowfloatThe low price.
closefloatThe close price.
volumeintThe trading volume.