Skip to content

Commit 2f392b4

Browse files
committed
add liq line
1 parent b55e7bc commit 2f392b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

freqtrade/rpc/telegram.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,12 @@ async def _status_msg(self, update: Update, context: CallbackContext) -> None:
834834
"*Initial Stoploss:* `{initial_stop_loss_abs:.8f}` "
835835
"`({initial_stop_loss_ratio:.2%})`"
836836
)
837-
837+
# Adding liquidation only if it is not None
838+
lines.append(
839+
f"*Liquidation:* `{round_value(r['liquidation_price'], 8)}`"
840+
if r["liquidation_price"]
841+
else ""
842+
)
838843
# Adding stoploss and stoploss percentage only if it is not None
839844
lines.append(
840845
f"*Stoploss:* `{round_value(r['stop_loss_abs'], 8)}` "

0 commit comments

Comments
 (0)