Hopefully fix orders being left lingering and trade not updating once they are complete

This commit is contained in:
Reigo Reinmets 2021-12-17 22:29:41 +02:00
parent d10fb95fce
commit cc28f73d7f

View File

@ -637,6 +637,7 @@ class FreqtradeBot(LoggingMixin):
timeframe=timeframe_to_minutes(self.config['timeframe']) timeframe=timeframe_to_minutes(self.config['timeframe'])
) )
trade.fee_open_currency = None trade.fee_open_currency = None
trade.fee_open_currency = order_id
trade.orders.append(order_obj) trade.orders.append(order_obj)
trade.recalc_trade_from_orders() trade.recalc_trade_from_orders()
Trade.query.session.add(trade) Trade.query.session.add(trade)