mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-12 19:23:55 +00:00
Simplify query in freqtradebot
This commit is contained in:
parent
6a7ffd5483
commit
c550cd8b0d
|
@ -227,7 +227,7 @@ class FreqtradeBot(LoggingMixin):
|
||||||
Notify the user when the bot is stopped (not reloaded)
|
Notify the user when the bot is stopped (not reloaded)
|
||||||
and there are still open trades active.
|
and there are still open trades active.
|
||||||
"""
|
"""
|
||||||
open_trades = Trade.get_trades([Trade.is_open.is_(True)]).all()
|
open_trades = Trade.get_open_trades()
|
||||||
|
|
||||||
if len(open_trades) != 0 and self.state != State.RELOAD_CONFIG:
|
if len(open_trades) != 0 and self.state != State.RELOAD_CONFIG:
|
||||||
msg = {
|
msg = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user