From 869458b2e118523ccb97460ad8acd657528fd662 Mon Sep 17 00:00:00 2001 From: algizn97 Date: Sat, 25 Oct 2025 18:46:26 +0500 Subject: [PATCH] Added a button to select the direction of the first transaction. --- app/telegram/keyboards/inline.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/telegram/keyboards/inline.py b/app/telegram/keyboards/inline.py index 9f70820..8d7e172 100644 --- a/app/telegram/keyboards/inline.py +++ b/app/telegram/keyboards/inline.py @@ -94,7 +94,10 @@ def get_additional_settings_keyboard(mode: str if mode == "Switch": buttons.append( - [InlineKeyboardButton(text="Направление первой сделки", callback_data="switch_side_start")] + [InlineKeyboardButton(text="Направление первой сделки первой серии", callback_data="switch_side_start")] + ) + buttons.append( + [InlineKeyboardButton(text="Направление первой сделки последующих серии", callback_data="switch_side_second")] ) buttons.append( @@ -148,6 +151,19 @@ switch_side = InlineKeyboardMarkup( ] ) +side_for_switch = InlineKeyboardMarkup( + inline_keyboard=[ + [ + InlineKeyboardButton(text="Лонг", callback_data="buy_switch"), + InlineKeyboardButton(text="Шорт", callback_data="sell_switch"), + ], + [ + InlineKeyboardButton(text="Назад", callback_data="additional_settings"), + InlineKeyboardButton(text="На главную", callback_data="profile_bybit"), + ], + ] +) + margin_type = InlineKeyboardMarkup( inline_keyboard=[ [