Fixed messages and readability

This commit is contained in:
Yazeed Al Oyoun
2020-02-11 15:58:40 +01:00
parent 867b736b84
commit fc29564974
5 changed files with 11 additions and 11 deletions

View File

@@ -168,8 +168,8 @@ class RPC:
profit_str += f" ({fiat_profit:.2f})"
trades_list.append([
trade.id,
trade.pair + ['', '*'][trade.open_order_id is not None
and trade.close_rate_requested is None],
trade.pair + '*' if (trade.open_order_id is not None
and trade.close_rate_requested is None) else '',
shorten_date(arrow.get(trade.open_date).humanize(only_distance=True)),
profit_str
])

View File

@@ -144,7 +144,7 @@ class Telegram(RPC):
message += ")`"
elif msg['type'] == RPCMessageType.BUY_CANCEL_NOTIFICATION:
message = "*{exchange}:* Cancelling Buy {pair}".format(**msg)
message = "*{exchange}:* Cancelling Open Buy Order for {pair}".format(**msg)
elif msg['type'] == RPCMessageType.SELL_NOTIFICATION:
msg['amount'] = round(msg['amount'], 8)
@@ -172,7 +172,7 @@ class Telegram(RPC):
' / {profit_fiat:.3f} {fiat_currency})`').format(**msg)
elif msg['type'] == RPCMessageType.SELL_CANCEL_NOTIFICATION:
message = "*{exchange}:* Cancelling Sell {pair}".format(**msg)
message = "*{exchange}:* Cancelling Open Sell Order for {pair}".format(**msg)
elif msg['type'] == RPCMessageType.STATUS_NOTIFICATION:
message = '*Status:* `{status}`'.format(**msg)