Revert "strategy callback on_whitelist_update"
This reverts commit 39798dc1192161c3060830dd4684571aa86b7821.
This commit is contained in:
parent
bf7da35e31
commit
d92761b2b1
@ -179,7 +179,6 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
# Query trades from persistence layer
|
# Query trades from persistence layer
|
||||||
trades = Trade.get_open_trades()
|
trades = Trade.get_open_trades()
|
||||||
|
|
||||||
current_pair_whitelist = self.active_pair_whitelist
|
|
||||||
self.active_pair_whitelist = self._refresh_active_whitelist(trades)
|
self.active_pair_whitelist = self._refresh_active_whitelist(trades)
|
||||||
|
|
||||||
# Refreshing candles
|
# Refreshing candles
|
||||||
@ -215,9 +214,6 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
Trade.commit()
|
Trade.commit()
|
||||||
self.last_process = datetime.now(timezone.utc)
|
self.last_process = datetime.now(timezone.utc)
|
||||||
|
|
||||||
if current_pair_whitelist != self.active_pair_whitelist:
|
|
||||||
self.strategy.on_whitelist_update()
|
|
||||||
|
|
||||||
def process_stopped(self) -> None:
|
def process_stopped(self) -> None:
|
||||||
"""
|
"""
|
||||||
Close all orders that were left open
|
Close all orders that were left open
|
||||||
|
@ -209,13 +209,6 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_whitelist_update(self, **kwargs) -> None:
|
|
||||||
"""
|
|
||||||
Called every time the whitelist updates
|
|
||||||
:param **kwargs: Ensure to keep this here so updates to this won't break your strategy.
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def check_buy_timeout(self, pair: str, trade: Trade, order: Order,
|
def check_buy_timeout(self, pair: str, trade: Trade, order: Order,
|
||||||
current_time: datetime, **kwargs) -> bool:
|
current_time: datetime, **kwargs) -> bool:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user