Skip to content

Commit

Permalink
fix default retval for strategy custom_entry_price
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-CH committed Aug 5, 2021
1 parent 0aeebc9 commit 84d0820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def execute_buy(self, pair: str, stake_amount: float, price: Optional[float] = N
# 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)

Expand Down

0 comments on commit 84d0820

Please sign in to comment.