fix default retval for strategy custom_entry_price

This commit is contained in:
axel 2021-08-05 18:00:31 -04:00
parent 0aeebc9d53
commit 84d082033b

View File

@ -481,7 +481,7 @@ class FreqtradeBot(LoggingMixin):
# Calculate price
buy_limit_requested = self.exchange.get_rate(pair, refresh=True, side="buy")
custom_entry_price = strategy_safe_wrapper(self.strategy.custom_entry_price,
default_retval=stake_amount)(
default_retval=buy_limit_requested)(
pair=pair, current_time=datetime.now(timezone.utc),
proposed_rate=buy_limit_requested)