Fix the dca order not being counted bug.

This commit is contained in:
Reigo Reinmets
2021-12-20 22:07:42 +02:00
parent d9f5694965
commit f6d36ce56b
2 changed files with 138 additions and 49 deletions

View File

@@ -292,8 +292,8 @@ class FreqtradeBot(LoggingMixin):
for trade in trades:
if trade.is_open and not trade.fee_updated('buy'):
order = trade.select_order('buy', False)
if order:
logger.info(f"Updating buy-fee on trade {trade} for order {order.order_id}.")
open_order = trade.select_order('buy', True)
if order and open_order is None:
self.update_trade_state(trade, order.order_id, send_msg=False)
def handle_insufficient_funds(self, trade: Trade):