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
- standard
- deribit
symbol: str
Symbol to get data for.
date: date | str | None | str
A specific date to get data for.
symbol: str | None
Default: BTC
Symbol to get data for. The underlying root, as it appears in the instrument name.
date: date | str | None | str
A specific date to get data for.
hours_ago: str | None | list[str | None]
Compare the current curve against how it stood this many hours ago. Multiple items allowed.
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
- standard
- deribit
date: date | None | str
The date of the data.
expiration: str
Futures expiration month.
price: float | None
The price of the futures contract.
date: date | None | str
The date of the data.
expiration: str
Futures expiration month.
price: float | None
The price of the futures contract, taken from the mark.
symbol: str | None
The name of the contract.
last_price: float | None
The price the contract last traded at, which on a thin contract can be a long way from the mark the curve is built on.
hours_ago: int | None
How many hours back the price was read, when the query asked for one.