Skip to main content

curve

Futures Term Structure, current or historical.

Examples

from openbb import obb
obb.derivatives.futures.curve(symbol='VX', provider='cboe', date='2024-06-25')
obb.derivatives.futures.curve(symbol='NG', provider='yfinance')

Parameters

symbol: str
Symbol to get data for.

date: Union[date | str, list[date | str]]
A specific date to get data for. Multiple items allowed for provider(s): cboe, yfinance.


Returns

results: list[FuturesCurve]

Serializable results.

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

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data

date: date | str
The date of the data.

expiration: str
Futures expiration month.

price: float
The price of the futures contract.