mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
* Initial implementation of the API wrapper for stocks/disc
* Create a file for helper classes
* Move models namespace class where it belongs... TO THE HELPER_CLASSES🚀
* Add backtesting api wrapper
* Add ba api wrapper
* Add dps api wrapper
* Fix flake8 warnings in command help strings
* Add comparison analysis models
* Add dd api wrapper
* Add fa api wrapper
* Add gov api wrapper
* Add ins api wrapper *note the note
* Add options api wrapper *note the note
* Add prediction api wrapper
* Add api support for importing models from both local and common contexts
* Add qa api wrapper
* Add screener api wrapper *note the note
* Fix typos in sia controller
* Add sia api wrapper
* Add ta api wrapper
* Disable linting for specific lines that fail in CI
* Remove deprecated parameter
* Add exception handling when prediction packages are not installed
59 lines
2.1 KiB
Python
59 lines
2.1 KiB
Python
"""Quantitative Analysis API."""
|
|
import os
|
|
from gamestonk_terminal.helper_classes import ModelsNamespace as _models
|
|
|
|
# flake8: noqa
|
|
# pylint: disable=unused-import
|
|
|
|
# Menu commands
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import display_raw as raw
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import (
|
|
display_summary as summary,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import display_line as line
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import display_hist as hist
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import display_cdf as cdf
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import display_bw as bw
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import (
|
|
display_seasonal as decompose,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import (
|
|
display_cusum as cusum,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import display_acf as acf
|
|
from gamestonk_terminal.common.quantitative_analysis.rolling_view import (
|
|
display_mean_std as rolling,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.rolling_view import (
|
|
display_spread as spread,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.rolling_view import (
|
|
display_quantile as quantile,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.rolling_view import (
|
|
display_skew as skew,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.rolling_view import (
|
|
display_kurtosis as kurtosis,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import (
|
|
display_normality as normality,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import (
|
|
display_qqplot as qqplot,
|
|
)
|
|
from gamestonk_terminal.common.quantitative_analysis.qa_view import (
|
|
display_unitroot as unitroot,
|
|
)
|
|
from .factors_view import capm_view as capm
|
|
|
|
# Models
|
|
# NOTE: The raw function is used here to point to the commons path where all the
|
|
# qa models are expected to live
|
|
models = _models(
|
|
[
|
|
os.path.abspath(os.path.dirname(raw.__code__.co_filename)),
|
|
os.path.abspath(os.path.dirname(__file__)),
|
|
]
|
|
)
|