Skip to content

Commit 1db871e

Browse files
authored
Merge pull request freqtrade#12536 from stash86/add-liq-price
Add liq price info on telegram message
2 parents 2204803 + 1513ba9 commit 1db871e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

freqtrade/rpc/telegram.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,10 @@ async def _status_msg(self, update: Update, context: CallbackContext) -> None:
825825

826826
# Append empty line to improve readability
827827
lines.append(" ")
828+
# Adding liquidation only if it is not None
829+
if liquidation := r.get("liquidation_price"):
830+
lines.append(f"*Liquidation:* `{round_value(liquidation, 8)}`")
831+
828832
if (
829833
r["stop_loss_abs"] != r["initial_stop_loss_abs"]
830834
and r["initial_stop_loss_ratio"] is not None

0 commit comments

Comments
 (0)