Merge pull request #1267 from freqtrade/telegram_fix

flush session for /forcesell all
This commit is contained in:
Samuel Husso 2018-10-10 08:44:44 +03:00 committed by GitHub
commit 8cf435f0ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,6 +363,7 @@ class RPC(object):
# Execute sell for all open orders
for trade in Trade.query.filter(Trade.is_open.is_(True)).all():
_exec_forcesell(trade)
Trade.session.flush()
return
# Query for trade