Deleting must delete orders first

This commit is contained in:
Matthias
2020-09-06 14:27:36 +02:00
parent b7662722ba
commit a78d61150c
5 changed files with 10 additions and 8 deletions

View File

@@ -567,8 +567,7 @@ class RPC:
except (ExchangeError):
pass
Trade.session.delete(trade)
Trade.session.flush()
trade.delete()
self._freqtrade.wallets.update()
return {
'result': 'success',