mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-11 20:01:16 +00:00
* news api refactored in model and view * fix apis * allow news to be displayed as vertical bar in candle * add gst letters only * small fix * minor fixes * redo normal candle without news * add a new funtion for sentiment of headlines and stock price * add finnhub python to requirements * fix FRED granularity * fix grhist plot coloring * remove unused arg * improve defi menu * stocks/ba/snews API * add tests for stocks/ba/snews * update hugo * Update _index.md * ensure error is catch when wrong API key * fix tests * fix economy tests * remove stats because that finnhub data is now premium * improve plot snews
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
"""ETF context API."""
|
|
import os
|
|
from gamestonk_terminal.helper_classes import ModelsNamespace as _models
|
|
|
|
# flake8: noqa
|
|
# pylint: disable=unused-import
|
|
|
|
# Context menus
|
|
from gamestonk_terminal.stocks.stocks_helper import display_candle as candle
|
|
from gamestonk_terminal.common.newsapi_view import display_news
|
|
from gamestonk_terminal.common.newsapi_model import get_news
|
|
from .financedatabase_view import display_etf_by_name as ln
|
|
from .financedatabase_view import display_etf_by_description as ld
|
|
from .stockanalysis_view import view_overview as overview
|
|
from .stockanalysis_view import view_holdings as holdings
|
|
from .yfinance_view import display_etf_weightings as weights
|
|
from .yfinance_view import display_etf_description as summary
|
|
from .technical_analysis import ta_api as ta
|
|
from .screener import screener_api as scr
|
|
from .discovery import disc_api as disc
|
|
|
|
try:
|
|
from .prediction_techniques import pred_api as pred
|
|
except Exception:
|
|
pass
|
|
|
|
# Models
|
|
models = _models(os.path.abspath(os.path.dirname(__file__)))
|