Stage 05.7 - trade draft UI restructuring and order context display
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user