Fixed bug; could never reach the rocket emoji
This commit is contained in:
parent
a86d4a99fc
commit
01eace7798
@ -158,12 +158,12 @@ class Telegram(RPC):
|
|||||||
microsecond=0) - msg['open_date'].replace(microsecond=0)
|
microsecond=0) - msg['open_date'].replace(microsecond=0)
|
||||||
msg['duration_min'] = msg['duration'].total_seconds() / 60
|
msg['duration_min'] = msg['duration'].total_seconds() / 60
|
||||||
|
|
||||||
if float(msg['profit_percent']) >= 0.0:
|
if float(msg['profit_percent']) > 5.0:
|
||||||
message = "\N{EIGHT SPOKED ASTERISK} *{exchange}:* Selling {pair}\n"
|
|
||||||
|
|
||||||
elif float(msg['profit_percent']) > 5.0:
|
|
||||||
message = ("\N{ROCKET} *{exchange}:* Selling {pair}\n").format(**msg)
|
message = ("\N{ROCKET} *{exchange}:* Selling {pair}\n").format(**msg)
|
||||||
|
|
||||||
|
elif float(msg['profit_percent']) >= 0.0:
|
||||||
|
message = "\N{EIGHT SPOKED ASTERISK} *{exchange}:* Selling {pair}\n"
|
||||||
|
|
||||||
elif msg['sell_reason'] == "stop_loss":
|
elif msg['sell_reason'] == "stop_loss":
|
||||||
message = ("\N{WARNING SIGN} *{exchange}:* Selling {pair}\n").format(**msg)
|
message = ("\N{WARNING SIGN} *{exchange}:* Selling {pair}\n").format(**msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user