Fix bad fill message

This commit is contained in:
Matthias 2021-04-22 10:01:41 +02:00
parent 9f6f3e0862
commit f744df2374

View File

@ -246,7 +246,8 @@ class Telegram(RPCHandler):
msg['message_side'] = 'Buy' if msg['type'] == RPCMessageType.BUY_FILL else 'Sell' msg['message_side'] = 'Buy' if msg['type'] == RPCMessageType.BUY_FILL else 'Sell'
message = ("\N{LARGE CIRCLE} *{exchange}:* " message = ("\N{LARGE CIRCLE} *{exchange}:* "
"Buy order for {pair} (#{trade_id}) filled for {open_rate}.".format(**msg)) "{message_side} order for {pair} (#{trade_id}) filled "
"for {open_rate}.".format(**msg))
elif msg['type'] == RPCMessageType.SELL: elif msg['type'] == RPCMessageType.SELL:
message = self._format_sell_msg(msg) message = self._format_sell_msg(msg)