Add additional_pairs to strategy

This commit is contained in:
Matthias 2019-01-21 20:22:27 +01:00
parent d6cdfc58af
commit 6e2de75bcb
2 changed files with 26 additions and 0 deletions

View File

@ -133,6 +133,19 @@ class IStrategy(ABC):
:return: DataFrame with sell column :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: def get_strategy_name(self) -> str:
""" """
Returns strategy class name Returns strategy class name

View File

@ -67,6 +67,19 @@ class TestStrategy(IStrategy):
'sell': 'gtc' '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: def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
""" """
Adds several different TA indicators to the given DataFrame Adds several different TA indicators to the given DataFrame