mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 14:31:20 +00:00
* 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>
18 lines
470 B
Python
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)
|