adjusted profit
This commit is contained in:
@@ -159,7 +159,7 @@ class TelegramMessageHandler:
|
||||
if safe_float(closed_size) == 0:
|
||||
text += f"Движение: {side_rus}\n"
|
||||
else:
|
||||
text += f"\nРеализованная прибыль: {total_pnl:.7f}\n"
|
||||
text += f"\nРеализованная прибыль: {exec_pnl:.7f}\n"
|
||||
|
||||
await self.telegram_bot.send_message(
|
||||
chat_id=tg_id, text=text, reply_markup=kbi.profile_bybit
|
||||
@@ -172,8 +172,8 @@ class TelegramMessageHandler:
|
||||
and safe_float(closed_size) > 0
|
||||
and user_symbols is not None
|
||||
):
|
||||
if safe_float(total_pnl) > 0:
|
||||
profit_text = "📈 Прибыль достигнута. Начинаем новую серию с базовой ставки\n"
|
||||
if safe_float(exec_pnl) > 0:
|
||||
profit_text = "📈 Начинаю новую серию с базовой ставки\n"
|
||||
await self.telegram_bot.send_message(
|
||||
chat_id=tg_id, text=profit_text, reply_markup=kbi.profile_bybit
|
||||
)
|
||||
@@ -225,7 +225,7 @@ class TelegramMessageHandler:
|
||||
reply_markup=kbi.profile_bybit,
|
||||
)
|
||||
else:
|
||||
open_order_text = "\n❗️ Сделка закрылась в минус, открываю новую сделку с увеличенной ставкой.\n"
|
||||
open_order_text = "\n❗️ Открываю новую сделку с увеличенной ставкой.\n"
|
||||
await self.telegram_bot.send_message(
|
||||
chat_id=tg_id, text=open_order_text
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user