mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-31 23:13:26 +08:00
* remove python 3.9 support and code * black * more cli lint * more linting * more lint * fix for tests * docstring grammar police * add lock to to build function to avoid async import race conditions * grammar police * lots more linting * relock
23 lines
572 B
Python
23 lines
572 B
Python
"""Views for the crypto Extension."""
|
|
|
|
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( # noqa: PLR0912
|
|
**kwargs,
|
|
) -> tuple["OpenBBFigure", dict[str, Any]]:
|
|
"""Crypto Price Historical Chart."""
|
|
# pylint: disable=import-outside-toplevel
|
|
from openbb_charting.charts.price_historical import price_historical
|
|
|
|
return price_historical(**kwargs)
|