Stage 07.1 - auto trading skeleton UI, state machine and mock controls
This commit is contained in:
14
app/src/trading/auto/state.py
Normal file
14
app/src/trading/auto/state.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# app/src/trading/auto/state.py
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class AutoTradeState:
|
||||
status: str = "OFF"
|
||||
strategy: str | None = None
|
||||
symbol: str = ""
|
||||
risk_percent: float | None = None
|
||||
pnl_usd: float = 0.0
|
||||
Reference in New Issue
Block a user