Futures Historical
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
FuturesHistorical | FuturesHistoricalQueryParams | FuturesHistoricalData |
Import Statement
from openbb_core.provider.standard_models.futures_historical import (
FuturesHistoricalData,
FuturesHistoricalQueryParams,
)
Parameters
- standard
- deribit
- yfinance
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): deribit, yfinance.
start_date: date | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | str
End date of the data, in YYYY-MM-DD format.
expiration: str
Future expiry date with format YYYY-MM
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): deribit, yfinance.
start_date: date | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | str
End date of the data, in YYYY-MM-DD format.
expiration: str
Future expiry date with format YYYY-MM
interval: Literal['1m', '3m', '5m', '10m', '15m', '30m', '1h', '2h', '3h', '6h', '12h', '1d']
Default: 1d
Time interval of the data to return.
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): deribit, yfinance.
start_date: date | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | str
End date of the data, in YYYY-MM-DD format.
expiration: str
Future expiry date with format YYYY-MM
interval: Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1W', '1M', '1Q']
Default: 1d
Time interval of the data to return.
Data
- standard
- deribit
- yfinance
date: Union[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.
date: Union[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.
volume_notional: float
Trading volume in quote currency.
date: Union[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.