Improve logging, don't search for buy orders in refind_lost_order

This commit is contained in:
Matthias 2020-08-23 16:04:32 +02:00
parent 4ecb67d1d1
commit 9ba9f73706

View File

@ -306,6 +306,9 @@ class FreqtradeBot:
for order in trade.orders: for order in trade.orders:
logger.info(f"Trying to refind {order}") logger.info(f"Trying to refind {order}")
fo = None fo = None
if order.ft_order_side == 'buy':
# Skip buy side - this is handled by reupdate_buy_order_fees
continue
try: try:
fo = self.exchange.fetch_order_or_stoploss_order(order.order_id, order.ft_pair, fo = self.exchange.fetch_order_or_stoploss_order(order.order_id, order.ft_pair,
order.ft_order_side == 'stoploss') order.ft_order_side == 'stoploss')
@ -321,6 +324,7 @@ class FreqtradeBot:
# No action for buy orders ... # No action for buy orders ...
continue continue
if fo: if fo:
logger.info(f"Found {order} for trade {trade}.jj")
self.update_trade_state(trade, order.order_id, fo, self.update_trade_state(trade, order.order_id, fo,
stoploss_order=order.ft_order_side == 'stoploss') stoploss_order=order.ft_order_side == 'stoploss')