Improve backfill of precisions

This commit is contained in:
Matthias 2022-08-16 09:32:31 +02:00
parent 711b6b1a1a
commit 2fb7a3091d

View File

@ -292,6 +292,8 @@ class FreqtradeBot(LoggingMixin):
trades = Trade.get_trades([Trade.precision_mode.is_(None)])
for trade in trades:
if trade.exchange != self.exchange.id:
continue
trade.precision_mode = self.exchange.precisionMode
trade.amount_precision = self.exchange.get_precision_amount(trade.pair)
trade.price_precision = self.exchange.get_precision_price(trade.pair)