feat: 주요 CLI, 인증, 서비스 로직 및 문서 개선
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user