Initial commit of integrated agent system
This commit is contained in:
14
backend/runtime/session.py
Normal file
14
backend/runtime/session.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TradingSessionKey:
|
||||
date: str
|
||||
ticker: str | None = None
|
||||
|
||||
def __post_init__(self):
|
||||
if not self.date:
|
||||
raise ValueError("Session must have a date")
|
||||
|
||||
def key(self) -> str:
|
||||
return f"{self.date}:{self.ticker or 'all'}"
|
||||
Reference in New Issue
Block a user