Final finetunings of rpc_fill messages

This commit is contained in:
Matthias
2021-04-20 19:36:30 +02:00
parent efbe0843be
commit f821ef5aec
3 changed files with 22 additions and 2 deletions

View File

@@ -242,7 +242,7 @@ class Telegram(RPCHandler):
"Cancelling open {message_side} Order for {pair} (#{trade_id}). "
"Reason: {reason}.".format(**msg))
elif msg['type'] == (RPCMessageType.BUY_FILL, RPCMessageType.SELL_FILL):
elif msg['type'] in (RPCMessageType.BUY_FILL, RPCMessageType.SELL_FILL):
msg['message_side'] = 'Buy' if msg['type'] == RPCMessageType.BUY_FILL else 'Sell'
message = ("\N{LARGE CIRCLE} *{exchange}:* "