feat: 주요 CLI, 인증, 서비스 로직 및 문서 개선

This commit is contained in:
2026-04-15 00:48:22 +09:00
parent 36fbb0879e
commit 0e9d2a16d8
17 changed files with 864 additions and 18 deletions
+7
View File
@@ -15,6 +15,13 @@ _INVEST_ACTION_MAP = {
}
def normalize_expiry_days(expires_in_days: int | None, *, default_days: int) -> int:
days = default_days if expires_in_days is None else int(expires_in_days)
if days <= 0:
raise ValueError("만료일은 1일 이상이어야 합니다")
return days
class PortfolioDomainRepository(Protocol):
def get(self, portfolio_id: str) -> Portfolio: ...
def get_or_create(