2
0
forked from kodorvan/stcs

The trading mode has been moved to the main settings, Position mode, limit order and conditional order have been removed. The number of bids has been renamed to the base rate. The choice of the direction of the first transaction has been moved to the main settings

This commit is contained in:
algizn97
2025-10-10 13:57:13 +05:00
parent 0945be242a
commit fb82f365f2
2 changed files with 2 additions and 8 deletions

View File

@@ -7,7 +7,6 @@ from aiogram.types import CallbackQuery
import app.telegram.keyboards.inline as kbi
import database.request as rq
from app.bybit import get_bybit_client
from app.helper_functions import calculate_total_budget, safe_float
from logger_helper.logger_helper import LOGGING_CONFIG

View File

@@ -10,10 +10,7 @@ import database.request as rq
from app.bybit.get_functions.get_positions import get_active_positions_by_symbol
from app.bybit.open_positions import start_trading_cycle
from app.helper_functions import safe_float
from app.telegram.tasks.tasks import (
add_start_task_merged,
cancel_start_task_merged
)
from app.telegram.tasks.tasks import add_start_task_merged, cancel_start_task_merged
from logger_helper.logger_helper import LOGGING_CONFIG
logging.config.dictConfig(LOGGING_CONFIG)
@@ -120,9 +117,7 @@ async def start_trading(callback_query: CallbackQuery, state: FSMContext) -> Non
logger.error("Cancelled timer for user %s", callback_query.from_user.id)
@router_start_trading.callback_query(
lambda c: c.data == "cancel_timer_merged"
)
@router_start_trading.callback_query(lambda c: c.data == "cancel_timer_merged")
async def cancel_start_trading(
callback_query: CallbackQuery, state: FSMContext
) -> None: