blob: 2965e176a750aa87325d334841532dcc26f926e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
"""Views for the Derivatives Extension."""
from typing import Any, Dict, Tuple
from openbb_charting.charts.futures_curve import futures_curve
from openbb_charting.charts.price_historical import price_historical
from openbb_charting.core.openbb_figure import OpenBBFigure
class DerivativesViews:
"""Derivatives Views."""
@staticmethod
def derivatives_futures_historical( # noqa: PLR0912
**kwargs,
) -> Tuple[OpenBBFigure, Dict[str, Any]]:
"""Get Derivatives Futures Historical Chart."""
return price_historical(**kwargs)
@staticmethod
def derivatives_futures_curve( # noqa: PLR0912
**kwargs,
) -> Tuple[OpenBBFigure, Dict[str, Any]]:
"""Get Derivatives Futures Curve Chart."""
return futures_curve(**kwargs)
|