Call calc_open_price() whenever necessary

This commit is contained in:
Matthias
2019-12-17 07:08:36 +01:00
parent 307ade6251
commit 861a7834fc
3 changed files with 15 additions and 8 deletions

View File

@@ -555,6 +555,7 @@ class FreqtradeBot:
order['amount'] = new_amount
# 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)
@@ -850,6 +851,7 @@ class FreqtradeBot:
trade.amount = new_amount
# Fee was applied, so set to 0
trade.fee_open = 0
trade.recalc_open_trade_price()
except DependencyException as e:
logger.warning("Could not update trade amount: %s", e)