Files
OpenBB/openbb_terminal/stocks/technical_analysis/finbrain_view.py
montezdesousa 02901f1473 Trim command output spaces (#3424)
* first round of removing spaces

* remove more print statemnts

* remove more spaces

* bullbear color

* spacc color

* improve stalker readability

* delete more spaces

* reddit colors

* rever hood

* flake8

* forgot this one

* fix econometrics tests

* fix econometrics tests

* fix more tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-16 11:47:24 +00:00

26 lines
644 B
Python

"""Finbrain view"""
__docformat__ = "numpy"
import logging
from openbb_terminal.decorators import log_start_end
from openbb_terminal.rich_config import console
from openbb_terminal.stocks.technical_analysis import finbrain_model
logger = logging.getLogger(__name__)
@log_start_end(log=logger)
def technical_summary_report(symbol: str):
"""Print technical summary report provided by FinBrain's API
Parameters
----------
symbol: str
Ticker symbol to get the technical summary
"""
report = finbrain_model.get_technical_summary_report(symbol)
if report:
console.print(report.replace(". ", ".\n"))