Fix comment and improve log message
This commit is contained in:
parent
9e94778fd7
commit
ab6589d573
@ -367,12 +367,12 @@ class FreqtradeBot(object):
|
|||||||
order = exchange.get_order(trade.open_order_id, trade.pair)
|
order = exchange.get_order(trade.open_order_id, trade.pair)
|
||||||
# Try update amount (binance-fix)
|
# Try update amount (binance-fix)
|
||||||
try:
|
try:
|
||||||
# Only run for closed trades
|
# Only run for closed orders
|
||||||
if trade.fee_open != 0 and not (order['status'] == 'open'):
|
if trade.fee_open != 0 and not (order['status'] == 'open'):
|
||||||
new_amount = self.get_real_amount(trade)
|
new_amount = self.get_real_amount(trade)
|
||||||
# This may break if a exchange applies no fee (which appears highly unlikely)
|
# This may break if a exchange applies no fee (which appears highly unlikely)
|
||||||
if order['amount'] != new_amount:
|
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))
|
trade, order['amount'], new_amount))
|
||||||
order['amount'] = new_amount
|
order['amount'] = new_amount
|
||||||
# Fee was applied, so set to 0
|
# Fee was applied, so set to 0
|
||||||
|
Loading…
Reference in New Issue
Block a user