Files
OpenBB/gamestonk_terminal/stocks/backtesting/bt_api.py
Theodore Aptekarev 42b1acf5c3 Add an API wrapper for terminal functions to be used in python (#1170)
* 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
2022-01-13 15:50:28 +03:00

16 lines
445 B
Python

"""Backtesting API."""
import os
from gamestonk_terminal.helper_classes import ModelsNamespace as _models
# flake8: noqa
# pylint: disable=unused-import
# Menu commands
from .bt_view import display_whatif_scenario as whatif
from .bt_view import display_simple_ema as ema
from .bt_view import display_ema_cross as ema_cross
from .bt_view import display_rsi_strategy as rsi
# Models
models = _models(os.path.abspath(os.path.dirname(__file__)))