From e50b07ecb473b5b1349345e7cc4a8529d4ff753c Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Tue, 11 Jan 2022 12:05:57 +0200 Subject: [PATCH] Make code compatible. --- freqtrade/freqtradebot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 7fbed58d0..a056adabe 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -474,7 +474,9 @@ class FreqtradeBot(LoggingMixin): """ current_rate = self.exchange.get_rate(trade.pair, refresh=True, side="buy") current_profit = trade.calc_profit_ratio(current_rate) - nr_of_buys = trade.nr_of_successful_buys() # FIXME This is only here to lazyload orders. + + # FIXME This is only here to lazyload orders. + trade.nr_of_successful_buys() min_stake_amount = self.exchange.get_min_pair_stake_amount(trade.pair, current_rate, self.strategy.stoploss)