log enriched for time in force

This commit is contained in:
misagh 2018-11-29 13:22:41 +01:00
parent 4ffc74d5fa
commit 6bedcc5d79

View File

@ -484,9 +484,10 @@ class FreqtradeBot(object):
# or rejected by the exchange.
if order_info['status'] == 'EXPIRED' or order_info['status'] == 'REJECTED':
order_type = self.strategy.order_types['buy']
order_tif = self.strategy.order_time_in_force['buy']
status = order_info['status']
logger.warning('Buy %s order for %s is %s by %s.',
order_type, pair_s, status, self.exchange.name)
logger.warning('Buy %s order with time in force %s for %s is %s by %s.',
order_tif, order_type, pair_s, status, self.exchange.name)
return False