Disable refind_lost_order for now

This commit is contained in:
Matthias 2020-08-14 11:25:20 +02:00
parent b25267ad3d
commit cfa352ecf2

View File

@ -841,7 +841,8 @@ class FreqtradeBot:
except InsufficientFundsError as e: except InsufficientFundsError as e:
logger.warning(f"Unable to place stoploss order {e}.") logger.warning(f"Unable to place stoploss order {e}.")
# Try refinding stoploss order # Try refinding stoploss order
self.refind_lost_order(trade) # TODO: Currently disabled to allow testing without this first
# self.refind_lost_order(trade)
except InvalidOrderException as e: except InvalidOrderException as e:
trade.stoploss_order_id = None trade.stoploss_order_id = None
@ -933,7 +934,8 @@ class FreqtradeBot:
logger.info('Trailing stoploss: cancelling current stoploss on exchange (id:{%s}) ' logger.info('Trailing stoploss: cancelling current stoploss on exchange (id:{%s}) '
'in order to add another one ...', order['id']) 'in order to add another one ...', order['id'])
try: try:
self.exchange.cancel_stoploss_order(order['id'], trade.pair) co = self.exchange.cancel_stoploss_order(order['id'], trade.pair)
trade.update_order(co)
except InvalidOrderException: except InvalidOrderException:
logger.exception(f"Could not cancel stoploss order {order['id']} " logger.exception(f"Could not cancel stoploss order {order['id']} "
f"for pair {trade.pair}") f"for pair {trade.pair}")
@ -1195,7 +1197,8 @@ class FreqtradeBot:
except InsufficientFundsError as e: except InsufficientFundsError as e:
logger.warning(f"Unable to place order {e}.") logger.warning(f"Unable to place order {e}.")
# Try refinding "lost" orders # Try refinding "lost" orders
self.refind_lost_order(trade) # TODO: Currently disabled to allow testing without this first
# self.refind_lost_order(trade)
return False return False
order_obj = Order.parse_from_ccxt_object(order, trade.pair, 'sell') order_obj = Order.parse_from_ccxt_object(order, trade.pair, 'sell')