mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
feat: add leverage to telegram's /status table
This commit is contained in:
@@ -296,7 +296,10 @@ class RPC:
|
||||
else:
|
||||
trade_profit = 0.0
|
||||
profit_str = f"{0.0:.2f}"
|
||||
direction_str = ("S" if trade.is_short else "L") if nonspot else ""
|
||||
leverage = f"{trade.leverage:.3g}"
|
||||
direction_str = (
|
||||
(f"S {leverage}x" if trade.is_short else f"L {leverage}x") if nonspot else ""
|
||||
)
|
||||
if self._fiat_converter:
|
||||
fiat_profit = self._fiat_converter.convert_amount(
|
||||
trade_profit, stake_currency, fiat_display_currency
|
||||
|
||||
Reference in New Issue
Block a user