Avoid double notifications in case of partially filled buy orders

This commit is contained in:
Matthias
2020-08-26 22:17:43 +02:00
parent 5e75caa917
commit 9c0a3fffd7
5 changed files with 18 additions and 15 deletions

View File

@@ -149,7 +149,7 @@ class Telegram(RPC):
elif msg['type'] == RPCMessageType.BUY_CANCEL_NOTIFICATION:
message = ("\N{WARNING SIGN} *{exchange}:* "
"Cancelling Open Buy Order for {pair}".format(**msg))
"Cancelling open buy Order for {pair}. Reason: {reason}.".format(**msg))
elif msg['type'] == RPCMessageType.SELL_NOTIFICATION:
msg['amount'] = round(msg['amount'], 8)