remove use_custom_entry_price as a config option

This commit is contained in:
axel
2021-08-03 16:54:28 -04:00
parent 16146357b3
commit b3dafb378e
6 changed files with 15 additions and 23 deletions

View File

@@ -480,13 +480,12 @@ class FreqtradeBot(LoggingMixin):
else:
# Calculate price
buy_limit_requested = self.exchange.get_rate(pair, refresh=True, side="buy")
if self.config.get('use_custom_entry_price', False):
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)
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)
buy_limit_requested = custom_entry_price
buy_limit_requested = custom_entry_price
if not buy_limit_requested:
raise PricingError('Could not determine buy price.')