mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
fix open orders telegram reporting
This commit is contained in:
@@ -181,7 +181,7 @@ class RPC:
|
|||||||
for oo in trade.open_orders
|
for oo in trade.open_orders
|
||||||
if oo.ft_order_side not in ['stoploss']
|
if oo.ft_order_side not in ['stoploss']
|
||||||
]
|
]
|
||||||
oo_details = ''.join(map(str, oo_details_lst))
|
oo_details = ', '.join(oo_details_lst)
|
||||||
|
|
||||||
total_profit_abs = 0.0
|
total_profit_abs = 0.0
|
||||||
total_profit_ratio: Optional[float] = None
|
total_profit_ratio: Optional[float] = None
|
||||||
|
|||||||
@@ -663,10 +663,10 @@ class Telegram(RPCHandler):
|
|||||||
("`({stop_loss_ratio:.2%})`" if r['stop_loss_ratio'] else ""))
|
("`({stop_loss_ratio:.2%})`" if r['stop_loss_ratio'] else ""))
|
||||||
lines.append("*Stoploss distance:* `{stoploss_current_dist:.8g}` "
|
lines.append("*Stoploss distance:* `{stoploss_current_dist:.8g}` "
|
||||||
"`({stoploss_current_dist_ratio:.2%})`")
|
"`({stoploss_current_dist_ratio:.2%})`")
|
||||||
for order in r.get('open_orders', []):
|
if r.get('open_orders'):
|
||||||
lines.append(
|
lines.append(
|
||||||
f"*Open Order:* `{order}`"
|
"*Open Order:* `{open_orders}`"
|
||||||
+ "- `{exit_order_status}`" if r['exit_order_status'] else "")
|
+ ("- `{exit_order_status}`" if r['exit_order_status'] else ""))
|
||||||
|
|
||||||
lines_detail = self._prepare_order_details(
|
lines_detail = self._prepare_order_details(
|
||||||
r['orders'], r['quote_currency'], r['is_open'])
|
r['orders'], r['quote_currency'], r['is_open'])
|
||||||
|
|||||||
Reference in New Issue
Block a user