mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 03:02:00 +00:00
* 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>
34 lines
996 B
Python
34 lines
996 B
Python
"""Eclect.us view"""
|
|
__docformat__ = "numpy"
|
|
|
|
import logging
|
|
import os
|
|
|
|
from openbb_terminal.decorators import log_start_end
|
|
from openbb_terminal.rich_config import console
|
|
from openbb_terminal.stocks.fundamental_analysis import eclect_us_model
|
|
from openbb_terminal.helper_funcs import print_rich_table, export_data
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
@log_start_end(log=logger)
|
|
def display_analysis(symbol: str, export: str = "") -> None:
|
|
"""Display analysis of SEC filings based on NLP model. [Source: https://eclect.us]
|
|
|
|
Parameters
|
|
----------
|
|
symbol: str
|
|
Ticker symbol to do SEC filings analysis from
|
|
"""
|
|
|
|
analysis = eclect_us_model.get_filings_analysis(symbol)
|
|
|
|
if not analysis.empty:
|
|
print_rich_table(analysis, title="SEC sillings analysis", show_index=True)
|
|
export_data(
|
|
export, os.path.dirname(os.path.abspath(__file__)), "analysis", analysis
|
|
)
|
|
else:
|
|
console.print("Filings not found from eclect.us")
|