mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 23:41:27 +00:00
* merge branch develop with main * bump desktop version * fix the merge * sync Cargo.lock to desktop 2.0.0 * fix cli conftest.py --------- Co-authored-by: deeleeramone <>
25 lines
587 B
Python
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)
|