Stage 07.3 - auto trading analysis cycle skeleton

This commit is contained in:
2026-04-28 13:20:59 +03:00
parent 83ab842f6e
commit d639137855
7 changed files with 178 additions and 10 deletions

View File

@@ -7,8 +7,23 @@ from dataclasses import dataclass
@dataclass(slots=True)
class AutoTradeState:
# текущее состояние: OFF / OBSERVING / RUNNING
status: str = "OFF"
# выбранная стратегия: TREND / GRID / SCALP
strategy: str | None = None
# торговый инструмент
symbol: str = ""
# риск на одну сделку в %
risk_percent: float | None = None
pnl_usd: float = 0.0
# текущий PnL
pnl_usd: float = 0.0
# время последней проверки
last_check_at: str | None = None
# последний сигнал стратегии
last_signal: str | None = None