Skip to main content

historical

Historical futures prices.

Examples

from openbb import obb
obb.derivatives.futures.historical(symbol='ES')
# Enter multiple symbols.
obb.derivatives.futures.historical(symbol='ES,NQ')
# Enter expiration dates as "YYYY-MM".
obb.derivatives.futures.historical(symbol='ES', expiration='2025-12')

Parameters

symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): deribit, yfinance.

start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.

end_date: date | None | str
End date of the data, in YYYY-MM-DD format.

expiration: str | None
Future expiry date with format YYYY-MM


Returns

results: FuturesHistorical

Serializable results.

provider: Optional[Literal['deribit', 'yfinance']]

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data

date: datetime | str
The date of the data.

open: float
The open price.

high: float
The high price.

low: float
The low price.

close: float
The close price.

volume: float
The trading volume.