rename custom_entry_price kwarg to align it to the interface

This commit is contained in:
axel 2021-08-03 17:03:27 -04:00
parent b3dafb378e
commit b644233ead
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ class FreqtradeBot(LoggingMixin):
custom_entry_price = strategy_safe_wrapper(self.strategy.custom_entry_price,
default_retval=stake_amount)(
pair=pair, current_time=datetime.now(timezone.utc),
current_rate=buy_limit_requested)
proposed_rate=buy_limit_requested)
buy_limit_requested = custom_entry_price

View File

@ -664,7 +664,7 @@ class IStrategy(ABC, HyperStrategyMixin):
entry_price_value = strategy_safe_wrapper(self.custom_entry_price, default_retval=None)(
pair=pair,
current_time=current_time,
current_rate=current_rate)
proposed_rate=current_rate)
if entry_price_value is not None:
if entry_price_value > low: