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

symbol: Union[str, list[str]]

Symbol to get data for. Multiple items allowed for provider(s): cboe, fmp, intrinio, polygon, yfinance.

Optional: False


start_date: Union[date, str]

Start date of the data, in YYYY-MM-DD format.

Optional: True


end_date: Union[date, str]

End date of the data, in YYYY-MM-DD format.

Optional: True

Data

date: Union[Union[date, datetime], str]

The date of the data.

open: Annotated[float, Strict(strict=True)]

The open price.

high: Annotated[float, Strict(strict=True)]

The high price.

low: Annotated[float, Strict(strict=True)]

The low price.

close: Annotated[float, Strict(strict=True)]

The close price.

volume: int

The trading volume.