Split protection-notification into global and per-pair

This commit is contained in:
Matthias
2021-09-20 19:23:40 +02:00
parent a0fb43c6ca
commit dd0db7ee5d
6 changed files with 26 additions and 4 deletions

View File

@@ -1309,7 +1309,7 @@ class FreqtradeBot(LoggingMixin):
prot_trig_glb = self.protections.global_stop()
if prot_trig_glb:
msg = {'type': RPCMessageType.PROTECTION_TRIGGER, }
msg = {'type': RPCMessageType.PROTECTION_TRIGGER_GLOBAL, }
msg.update(prot_trig_glb.to_json())
self.rpc.send_msg(msg)