Temporary fix for lazy loading. Probably we can do it better.

This commit is contained in:
Reigo Reinmets 2022-01-11 11:43:32 +02:00
parent fbf026ac43
commit 94f2c99989
1 changed files with 1 additions and 0 deletions

View File

@ -474,6 +474,7 @@ 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.
min_stake_amount = self.exchange.get_min_pair_stake_amount(trade.pair,
current_rate,
self.strategy.stoploss)