diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index ecb32b2b5..c7ec8dda6 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -133,6 +133,19 @@ class IStrategy(ABC): :return: DataFrame with sell column """ + def additional_pairs(self) -> List[Tuple[str, str]]: + """ + Define additional pair/interval combinations to be cached from the exchange. + These pair/interval combinations are non-tradeable, unless they are part + of the whitelist as well. + For more information, please consult the documentation + :return: List of tuples in the format (pair, interval) + Sample: return [("ETH/USDT", "5m"), + ("BTC/USDT", "15m"), + ] + """ + return [] + def get_strategy_name(self) -> str: """ Returns strategy class name diff --git a/user_data/strategies/test_strategy.py b/user_data/strategies/test_strategy.py index 048b398c7..314787f7a 100644 --- a/user_data/strategies/test_strategy.py +++ b/user_data/strategies/test_strategy.py @@ -67,6 +67,19 @@ class TestStrategy(IStrategy): 'sell': 'gtc' } + def additional_pairs(self): + """ + Define additional pair/interval combinations to be cached from the exchange. + These pair/interval combinations are non-tradeable, unless they are part + of the whitelist as well. + For more information, please consult the documentation + :return: List of tuples in the format (pair, interval) + Sample: return [("ETH/USDT", "5m"), + ("BTC/USDT", "15m"), + ] + """ + return [] + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Adds several different TA indicators to the given DataFrame