flush session for /forcesell all
This commit is contained in:
parent
d23dc3ec41
commit
44c275c801
@ -363,6 +363,7 @@ class RPC(object):
|
|||||||
# Execute sell for all open orders
|
# Execute sell for all open orders
|
||||||
for trade in Trade.query.filter(Trade.is_open.is_(True)).all():
|
for trade in Trade.query.filter(Trade.is_open.is_(True)).all():
|
||||||
_exec_forcesell(trade)
|
_exec_forcesell(trade)
|
||||||
|
Trade.session.flush()
|
||||||
return
|
return
|
||||||
|
|
||||||
# Query for trade
|
# Query for trade
|
||||||
|
Loading…
Reference in New Issue
Block a user