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

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for.False
dateUnion[Union[date, str], List[Union[date, str]]]A specific date to get data for. Multiple items allowed for provider(s): cboe, yfinance.NoneTrue

Returns

OBBject
results : List[FuturesCurve]
Serializable results.

provider : Optional[Literal['cboe', 'yfinance']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
dateUnion[date, str]The date of the data.
expirationstrFutures expiration month.
pricefloatThe price of the futures contract.