Files
OpenBB/openbb_platform/extensions/crypto/openbb_crypto/crypto_views.py
Danglewood 3fd14d7068 [V5] Refactor Shared Pass Through Router Extensions For Hatchling (#7524)
* refactor shared pass-through routers for hatchling and ruff + ty

* add publish workflows
2026-06-22 14:36:21 -07:00

25 lines
587 B
Python

"""Views for the crypto Extension."""
from importlib import import_module
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from openbb_charting.core.openbb_figure import (
OpenBBFigure,
)
class CryptoViews:
"""Crypto Views."""
@staticmethod
def crypto_price_historical(
**kwargs,
) -> tuple["OpenBBFigure", dict[str, Any]]:
"""Crypto Price Historical Chart."""
price_historical = import_module(
"openbb_charting.charts.price_historical"
).price_historical
return price_historical(**kwargs)