only update if open_fee is set

This commit is contained in:
Matthias Voppichler 2018-04-22 09:13:02 +02:00
parent a140748b5a
commit be95d699d2

View File

@ -370,7 +370,8 @@ class FreqtradeBot(object):
# Try update amount (binance-fix)
try:
new_amount = self.get_real_amount(trade)
if order['amount'] != new_amount:
# This may break if a exchange applies no fee (which appears highly unlikely)
if order['amount'] != new_amount and trade.fee_open != 0:
logger.info("Updating amount for Trade {} from {} to {}".format(
trade, order['amount'], new_amount))
order['amount'] = new_amount