Timestamps are in ms

This commit is contained in:
Matthias
2020-08-13 15:39:29 +02:00
parent 73182bb2dd
commit 0af9e913d4
5 changed files with 15 additions and 7 deletions

View File

@@ -817,6 +817,9 @@ class FreqtradeBot:
except InvalidOrderException as exception:
logger.warning('Unable to fetch stoploss order: %s', exception)
if stoploss_order:
trade.update_order(stoploss_order)
# We check if stoploss order is fulfilled
if stoploss_order and stoploss_order['status'] in ('closed', 'triggered'):
trade.sell_reason = SellType.STOPLOSS_ON_EXCHANGE.value
@@ -1260,7 +1263,7 @@ class FreqtradeBot:
except InvalidOrderException as exception:
logger.warning('Unable to fetch order %s: %s', order_id, exception)
return False
Order.update_order(order)
trade.update_order(order)
# Try update amount (binance-fix)
try:
new_amount = self.get_real_amount(trade, order, order_amount)