Add side to custom_entry_price

This commit is contained in:
Matthias
2022-04-04 16:48:27 +02:00
parent 61faee1e7d
commit f8783c908e
5 changed files with 30 additions and 4 deletions

View File

@@ -760,7 +760,9 @@ class FreqtradeBot(LoggingMixin):
custom_entry_price = strategy_safe_wrapper(self.strategy.custom_entry_price,
default_retval=proposed_enter_rate)(
pair=pair, current_time=datetime.now(timezone.utc),
proposed_rate=proposed_enter_rate, entry_tag=entry_tag)
proposed_rate=proposed_enter_rate, entry_tag=entry_tag,
side=trade_side,
)
enter_limit_requested = self.get_valid_price(custom_entry_price, proposed_enter_rate)