Support partially cancelled orders for fee calculation

This commit is contained in:
Matthias
2020-05-01 20:17:22 +02:00
parent 737fc6d198
commit 021e2b58ca
5 changed files with 7 additions and 7 deletions

View File

@@ -1144,8 +1144,6 @@ class FreqtradeBot:
if not isclose(order['amount'], new_amount, abs_tol=constants.MATH_CLOSE_PREC):
order['amount'] = new_amount
order.pop('filled', None)
# Fee was applied, so set to 0
trade.fee_open = 0
trade.recalc_open_trade_price()
except DependencyException as exception:
logger.warning("Could not update trade amount: %s", exception)