Skip to main content

Futures Historical


Implementation details

Class names

Model nameParameters classData class
FuturesHistoricalFuturesHistoricalQueryParamsFuturesHistoricalData

Import Statement

from openbb_core.provider.standard_models.futures_historical import (
FuturesHistoricalData,
FuturesHistoricalQueryParams,
)

Parameters

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): 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
expirationstrFuture expiry date with format YYYY-MMNoneTrue
providerLiteral['yfinance']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'yfinance' if there is no default.yfinanceTrue

Data

NameTypeDescription
datedatetimeThe date of the data.
openfloatThe open price.
highfloatThe high price.
lowfloatThe low price.
closefloatThe close price.
volumefloatThe trading volume.