diff --git a/docs/bot-optimization.md b/docs/bot-optimization.md index 5ac4be04c..8592f6cca 100644 --- a/docs/bot-optimization.md +++ b/docs/bot-optimization.md @@ -302,7 +302,7 @@ if self.dp: #### Get data for non-tradeable pairs -Data for additional pairs (reference pairs) can be beneficial for some strategies. +Data for additional, informative pairs (reference pairs) can be beneficial for some strategies. Ohlcv data for these pairs will be downloaded as part of the regular whitelist refresh process and is available via `DataProvider` just as other pairs (see above). These parts will **not** be traded unless they are also specified in the pair whitelist, or have been selected by Dynamic Whitelisting. @@ -311,7 +311,7 @@ The pairs need to be specified as tuples in the format `("pair", "interval")`, w Sample: ``` python -def additional_pairs(self): +def informative_pairs(self): return [("ETH/USDT", "5m"), ("BTC/TUSD", "15m"), ] diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 56ba404d6..656c700ac 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -175,7 +175,7 @@ class FreqtradeBot(object): for pair in self.active_pair_whitelist] # Refreshing candles self.dataprovider.refresh(pair_whitelist_tuple, - self.strategy.additional_pairs()) + self.strategy.informative_pairs()) # First process current opened trades for trade in trades: diff --git a/freqtrade/strategy/default_strategy.py b/freqtrade/strategy/default_strategy.py index 36064f640..5c7d50a65 100644 --- a/freqtrade/strategy/default_strategy.py +++ b/freqtrade/strategy/default_strategy.py @@ -42,9 +42,9 @@ class DefaultStrategy(IStrategy): 'sell': 'gtc', } - def additional_pairs(self): + def informative_pairs(self): """ - Define additional pair/interval combinations to be cached from the exchange. + Define additional, informative 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 diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index c7ec8dda6..733651df4 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -133,9 +133,9 @@ class IStrategy(ABC): :return: DataFrame with sell column """ - def additional_pairs(self) -> List[Tuple[str, str]]: + def informative_pairs(self) -> List[Tuple[str, str]]: """ - Define additional pair/interval combinations to be cached from the exchange. + Define additional, informative 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 diff --git a/user_data/strategies/test_strategy.py b/user_data/strategies/test_strategy.py index 314787f7a..e1f7d9c11 100644 --- a/user_data/strategies/test_strategy.py +++ b/user_data/strategies/test_strategy.py @@ -67,9 +67,9 @@ class TestStrategy(IStrategy): 'sell': 'gtc' } - def additional_pairs(self): + def informative_pairs(self): """ - Define additional pair/interval combinations to be cached from the exchange. + Define additional, informative 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