Add bot_loop_start callback

This commit is contained in:
Matthias 2020-06-14 06:52:11 +02:00
parent 7da955556d
commit 77056a3119
1 changed files with 9 additions and 0 deletions

View File

@ -190,6 +190,15 @@ class IStrategy(ABC):
"""
return False
def bot_loop_start(self, **kwargs) -> None:
"""
Called at the start of the bot iteration (one loop).
Might be used to perform pair-independent tasks
(e.g. like lock pairs with negative profit in the last hour)
:param **kwargs: Ensure to keep this here so updates to this won't break your strategy.
"""
pass
def informative_pairs(self) -> ListPairsWithTimeframes:
"""
Define additional, informative pair/interval combinations to be cached from the exchange.