Added exchange name, removed capital letters
This commit is contained in:
parent
0642ab76bf
commit
48289e8ca7
@ -177,7 +177,7 @@ class FreqtradeBot:
|
|||||||
|
|
||||||
def check_for_open_trades(self):
|
def check_for_open_trades(self):
|
||||||
"""
|
"""
|
||||||
Notify the user when he stops the bot
|
Notify the user when the bot is stopped
|
||||||
and there are still open trades active.
|
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,
|
||||||
@ -186,9 +186,10 @@ class FreqtradeBot:
|
|||||||
if len(open_trades) is not 0:
|
if len(open_trades) is not 0:
|
||||||
msg = {
|
msg = {
|
||||||
f'type': RPCMessageType.WARNING_NOTIFICATION,
|
f'type': RPCMessageType.WARNING_NOTIFICATION,
|
||||||
f'status': f'{len(open_trades)} OPEN TRADES ACTIVE\n\n'
|
f'status': f'{len(open_trades)} open trades active.\n\n'
|
||||||
f'Handle these trades manually or \'/start\' the bot again '
|
f'Handle these trades manually on {self.exchange.name}, '
|
||||||
f'and use \'/stopbuy\' to handle open trades gracefully.'
|
f'or \'/start\' the bot again and use \'/stopbuy\' '
|
||||||
|
f'to handle open trades gracefully.'
|
||||||
}
|
}
|
||||||
self.rpc.send_msg(msg)
|
self.rpc.send_msg(msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user