mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add additional_pairs to strategy
This commit is contained in:
parent
d6cdfc58af
commit
6e2de75bcb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user