07.4.3.18.1 — Runtime Event Skeleton Architecture
This commit is contained in:
@@ -14,6 +14,7 @@ from src.integrations.exchange.market_data_runner import MarketDataRunner
|
||||
from src.trading.auto.service import AutoTradeService
|
||||
from src.trading.journal.service import JournalService
|
||||
from src.telegram.ui.currency_ui import format_usd_pnl, format_usd_price
|
||||
from src.notifications.targets import NotificationTargetRegistry
|
||||
|
||||
|
||||
class AutoTradeRunner:
|
||||
@@ -56,6 +57,11 @@ class AutoTradeRunner:
|
||||
cls._render_markup = render_markup
|
||||
cls._last_text = None
|
||||
|
||||
NotificationTargetRegistry.set_default_chat(
|
||||
bot=bot,
|
||||
chat_id=chat_id,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
async def delete_registered_screen(
|
||||
cls,
|
||||
|
||||
@@ -11,6 +11,7 @@ from aiogram.exceptions import TelegramBadRequest, TelegramRetryAfter
|
||||
|
||||
from src.integrations.exchange.market_data_runner import MarketDataRunner
|
||||
from src.trading.debug.service import DebugTradeService
|
||||
from src.notifications.targets import NotificationTargetRegistry
|
||||
|
||||
|
||||
class DebugTradeRunner:
|
||||
@@ -48,6 +49,11 @@ class DebugTradeRunner:
|
||||
cls._render_markup = render_markup
|
||||
cls._last_text = None
|
||||
|
||||
NotificationTargetRegistry.set_default_chat(
|
||||
bot=bot,
|
||||
chat_id=chat_id,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
async def delete_registered_screen(
|
||||
cls,
|
||||
|
||||
Reference in New Issue
Block a user