From f0a25ea4858f66db5c440edefdc04ba815c28a4b Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 9 Apr 2024 20:32:15 +0200 Subject: [PATCH] feat: Add __all__ export to strategy's init file --- freqtrade/strategy/__init__.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/freqtrade/strategy/__init__.py b/freqtrade/strategy/__init__.py index bb21100c4..0a492a29e 100644 --- a/freqtrade/strategy/__init__.py +++ b/freqtrade/strategy/__init__.py @@ -1,4 +1,6 @@ # flake8: noqa: F401 +from typing import Dict, List, Optional, Union + from freqtrade.exchange import ( timeframe_to_minutes, timeframe_to_msecs, @@ -6,6 +8,7 @@ from freqtrade.exchange import ( timeframe_to_prev_date, timeframe_to_seconds, ) +from freqtrade.persistence import Order, PairLocks, Trade from freqtrade.strategy.informative_decorator import informative from freqtrade.strategy.interface import IStrategy from freqtrade.strategy.parameters import ( @@ -20,3 +23,30 @@ from freqtrade.strategy.strategy_helper import ( stoploss_from_absolute, stoploss_from_open, ) + + +__all__ = [ + "timeframe_to_minutes", + "timeframe_to_next_date", + "timeframe_to_prev_date", + "informative", + "IStrategy", + "Trade", + "Order", + "PairLocks", + # Parameters + "BooleanParameter", + "CategoricalParameter", + "DecimalParameter", + "IntParameter", + "RealParameter", + # Strategy helper functions + "merge_informative_pair", + "stoploss_from_absolute", + "stoploss_from_open", + # Typings + "List", + "Optional", + "Union", + "Dict", +]