refinement of status

This commit is contained in:
Stefano Ariestasia 2022-02-06 02:31:14 +00:00
parent cfaf13c90f
commit c4a54cc9cd

View File

@ -450,7 +450,10 @@ class Telegram(RPCHandler):
]
if position_adjust:
lines.append("*Number of Buy(s):* `{num_entries}`")
max_buy_str = ''
if max_entries > 0:
max_buy_str = f"/{max_entries + 1}"
lines.append("*Number of Buy(s):* `{num_entries}`" + max_buy_str)
lines.extend([
"*Open Rate:* `{open_rate:.8f}`",