mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 11:41:32 +00:00
* BIGGGG LINTING * fixing lints * fixing lints * black * very ruff * no export * fix hedge_view again * lints * platform lints * lints * black * black it @hjoaquim * fix some more linting --------- Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
27 lines
645 B
Python
27 lines
645 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"))
|