remove unnecessary .keys()
This commit is contained in:
parent
8bd9ed1543
commit
2e1124af1a
@ -394,7 +394,7 @@ class FreqtradeBot(object):
|
|||||||
return order_amount
|
return order_amount
|
||||||
|
|
||||||
# use fee from order-dict if possible
|
# use fee from order-dict if possible
|
||||||
if 'fee' in order.keys() and order['fee']:
|
if 'fee' in order and order['fee']:
|
||||||
if trade.pair.startswith(order['fee']['currency']):
|
if trade.pair.startswith(order['fee']['currency']):
|
||||||
new_amount = order_amount - order['fee']['cost']
|
new_amount = order_amount - order['fee']['cost']
|
||||||
logger.info("Applying fee on amount for %s (from %s to %s) from Order",
|
logger.info("Applying fee on amount for %s (from %s to %s) from Order",
|
||||||
|
Loading…
Reference in New Issue
Block a user