Stoploss orders should also be eligible to update closed fees

This commit is contained in:
Matthias
2022-07-16 12:52:35 +02:00
parent 415780a4fe
commit ed64e4299b
2 changed files with 9 additions and 1 deletions

View File

@@ -332,6 +332,8 @@ class FreqtradeBot(LoggingMixin):
if not trade.is_open and not trade.fee_updated(trade.exit_side):
# Get sell fee
order = trade.select_order(trade.exit_side, False)
if not order:
order = trade.select_order('stoploss', False)
if order:
logger.info(
f"Updating {trade.exit_side}-fee on trade {trade}"