From ab6589d573a743f0abba6fa3a6a00672fa66e1e5 Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Tue, 24 Apr 2018 19:43:08 +0200 Subject: [PATCH] Fix comment and improve log message --- freqtrade/freqtradebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index c7eace40c..a74481b9a 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -367,12 +367,12 @@ class FreqtradeBot(object): order = exchange.get_order(trade.open_order_id, trade.pair) # Try update amount (binance-fix) try: - # Only run for closed trades + # Only run for closed orders if trade.fee_open != 0 and not (order['status'] == 'open'): new_amount = self.get_real_amount(trade) # This may break if a exchange applies no fee (which appears highly unlikely) if order['amount'] != new_amount: - logger.info("Updating amount for Trade {} from {} to {}".format( + logger.info("Applying fee to amount for Trade {} from {} to {} ".format( trade, order['amount'], new_amount)) order['amount'] = new_amount # Fee was applied, so set to 0