feat: update strategy set schema fields

This commit is contained in:
2026-04-03 08:03:27 +00:00
parent 3eae90a9ab
commit ebd4559939
13 changed files with 131 additions and 37 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ from typing import Any, Protocol, runtime_checkable
@dataclass
class StrategySet:
id: str
strategy_name: str
strategy_config: str
name: str
config: str
nick: str
created_at: datetime | None = None
+1 -1
View File
@@ -45,7 +45,7 @@ class PortfolioDomainRepository(Protocol):
def update_portfolio(self, portfolio_id: str, **fields: object) -> Portfolio: ...
def list_portfolios(self, *, broker: str | None = None, status: str | None = None) -> list[Portfolio]: ...
def get_strategy_set(self, id: str) -> StrategySet | None: ...
def get_or_create_strategy_set(self, strategy_name: str, strategy_config: str) -> StrategySet: ...
def get_or_create_strategy_set(self, name: str, config: str) -> StrategySet: ...
def save(
self,
portfolio: Portfolio,