mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 05:52:23 +00:00
* decorated functions and removed assertion tests that are now caught by decorator logs * modified functions with @property * fixed bc of coingecko * fixed outedated tests
29 lines
757 B
Python
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("")
|