Stage 05.7 - trade draft UI restructuring and order context display

This commit is contained in:
2026-04-19 15:43:22 +03:00
parent 39b35d742a
commit cec7c761be
21 changed files with 2030 additions and 1243 deletions

View File

@@ -3,6 +3,7 @@
from __future__ import annotations
from aiogram import F, Router
from aiogram.fsm.context import FSMContext
from aiogram.types import Message
from src.integrations.exchange.exceptions import ExchangeError
@@ -127,7 +128,10 @@ def _safe_log_error(
@router.message(F.text == "💼 Портфель")
async def open_portfolio(message: Message) -> None:
async def open_portfolio(message: Message, state: FSMContext) -> None:
# Глобальный экран: всегда выходим из текущего FSM-сценария.
await state.clear()
service = AccountsService()
journal = JournalService()
@@ -234,4 +238,4 @@ async def open_portfolio(message: Message) -> None:
)
text = "\n".join(lines).rstrip()
await message.answer(text)
await message.answer(text)