Files
OpenBB/openbb_platform/extensions/crypto/openbb_crypto/crypto_views.py
Henrique Joaquim 5c79635da2 [Feature] Charting Modularity (#6477)
* add accessors to the charting extension

* equity views

* get charting functions from the extensions/accessors

* use the private variable instead

* etf views

* index views

* crypto and currency views

* technical views

* economy views

* fixedincome views

* right description for price historical

* unused

* adjust test and deprecate the charting router

* import views only with charting installed

* adding views throught dependencies instead

* removing unnecessary infra and adding entry point to charting extension

* fixed income toml

* removing accessor

* typo

* typo

* adding extra params to obbject

* remove things from init

* rename utils to charts instead

* updated readme

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2024-06-18 13:45:10 +00:00

18 lines
470 B
Python

"""Views for the crypto Extension."""
from typing import Any, Dict, Tuple
from openbb_charting.charts.price_historical import price_historical
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."""
return price_historical(**kwargs)