sell_cancel -> exit_cancel

This commit is contained in:
Matthias
2022-04-04 19:07:20 +02:00
parent 6a0110aa3c
commit 8b33d9cdb2
9 changed files with 10 additions and 10 deletions

View File

@@ -316,7 +316,7 @@ class Telegram(RPCHandler):
message = self._format_sell_msg(msg)
elif msg_type in (RPCMessageType.BUY_CANCEL, RPCMessageType.SHORT_CANCEL,
RPCMessageType.SELL_CANCEL):
RPCMessageType.EXIT_CANCEL):
msg['message_side'] = 'enter' if msg_type in [RPCMessageType.BUY_CANCEL,
RPCMessageType.SHORT_CANCEL] else 'exit'
message = ("\N{WARNING SIGN} *{exchange}:* "

View File

@@ -55,7 +55,7 @@ class Webhook(RPCHandler):
valuedict = whconfig.get('webhookexit', whconfig.get('webhooksell', None))
elif msg['type'] == RPCMessageType.SELL_FILL:
valuedict = whconfig.get('webhookexitfill', whconfig.get('webhookexitfill', None))
elif msg['type'] == RPCMessageType.SELL_CANCEL:
elif msg['type'] == RPCMessageType.EXIT_CANCEL:
valuedict = whconfig.get('webhookexitcancel',
whconfig.get('webhooksellcancel', None))
elif msg['type'] in (RPCMessageType.STATUS,