fix default retval for strategy custom_entry_price
This commit is contained in:
parent
0aeebc9d53
commit
84d082033b
@ -481,7 +481,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
# Calculate price
|
# Calculate price
|
||||||
buy_limit_requested = self.exchange.get_rate(pair, refresh=True, side="buy")
|
buy_limit_requested = self.exchange.get_rate(pair, refresh=True, side="buy")
|
||||||
custom_entry_price = strategy_safe_wrapper(self.strategy.custom_entry_price,
|
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),
|
pair=pair, current_time=datetime.now(timezone.utc),
|
||||||
proposed_rate=buy_limit_requested)
|
proposed_rate=buy_limit_requested)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user