Added information to the new function

This commit is contained in:
Theagainmen 2020-06-27 18:40:44 +02:00
parent e813573f27
commit 0642ab76bf

View File

@ -176,6 +176,10 @@ class FreqtradeBot:
self.cancel_all_open_orders() self.cancel_all_open_orders()
def check_for_open_trades(self): def check_for_open_trades(self):
"""
Notify the user when he stops the bot
and there are still open trades active.
"""
open_trades = Trade.get_trades([Trade.is_open == True, open_trades = Trade.get_trades([Trade.is_open == True,
]).all() ]).all()