Added bot_start callback to strategy interface

This commit is contained in:
Sam Germain
2022-04-01 08:39:56 -06:00
parent 44000ae0b3
commit 0b90e1d309
2 changed files with 9 additions and 0 deletions

View File

@@ -193,6 +193,13 @@ class IStrategy(ABC, HyperStrategyMixin):
"""
return self.populate_sell_trend(dataframe, metadata)
def bot_start(self, **kwargs) -> None:
"""
Called only once after bot instantiation.
:param **kwargs: Ensure to keep this here so updates to this won't break your strategy.
"""
pass
def bot_loop_start(self, **kwargs) -> None:
"""
Called at the start of the bot iteration (one loop).