Skip to main content
Version: v5

curve

Get the term structure of a Deribit underlying's dated futures.

Examples​

from openbb import obb
# The current BTC futures term structure.
obb.deribit.futures.curve(symbol='BTC', provider='deribit')
# The curve against where it stood a day ago.
obb.deribit.futures.curve(symbol='BTC', hours_ago=24, provider='deribit')

Parameters​

symbol: str
Symbol to get data for.

date: date | str | None | str
A specific date to get data for.


Returns​

results: DeribitFuturesCurve

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​

date: date | None | str
The date of the data.

expiration: str
Futures expiration month.

price: float | None
The price of the futures contract.