mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
use get to return None on trade with no liq price
This commit is contained in:
@@ -837,7 +837,7 @@ class Telegram(RPCHandler):
|
||||
# Adding liquidation only if it is not None
|
||||
lines.append(
|
||||
f"*Liquidation:* `{round_value(r['liquidation_price'], 8)}`"
|
||||
if r["liquidation_price"]
|
||||
if r.get("liquidation_price")
|
||||
else ""
|
||||
)
|
||||
# Adding stoploss and stoploss percentage only if it is not None
|
||||
|
||||
Reference in New Issue
Block a user