Files
OpenBB/gamestonk_terminal/stocks/technical_analysis/finbrain_view.py
LBolte29 6426b76771 decorated functions (#1282)
* decorated functions and removed assertion tests that are now caught by decorator logs
* modified functions with @property
* fixed bc of coingecko
* fixed outedated tests
2022-01-31 20:37:16 +01:00

29 lines
757 B
Python

"""Finbrain view"""
__docformat__ = "numpy"
import logging
from gamestonk_terminal.decorators import log_start_end
from gamestonk_terminal.rich_config import console
from gamestonk_terminal.stocks.technical_analysis import finbrain_model
logger = logging.getLogger(__name__)
@log_start_end(log=logger)
def technical_summary_report(ticker: str):
"""Print technical summary report provided by FinBrain's API
Parameters
----------
other_args : List[str]
Command line arguments to be processed with argparse
ticker : str
Ticker to get the technical summary
"""
report = finbrain_model.get_technical_summary_report(ticker)
if report:
console.print(report.replace(". ", ".\n"))
console.print("")