feat(portfolio): add asset name field across API, DB, and CLI

This commit is contained in:
2026-04-03 14:51:36 +00:00
parent aeb4f10fd0
commit 0654b24d66
13 changed files with 115 additions and 19 deletions
+3
View File
@@ -26,6 +26,7 @@ class FakeRepo:
portfolio_id: str,
symbol: str,
*,
name: str | None = None,
broker: str = "kis",
status: str = "enabled",
active_strategy_id: str | None = None,
@@ -36,6 +37,7 @@ class FakeRepo:
portfolio_id=portfolio_id,
broker=broker,
status=status,
name=name or symbol,
symbol=symbol,
cash_balance=initial_cash,
active_strategy_id=active_strategy_id,
@@ -155,6 +157,7 @@ def _portfolio() -> Portfolio:
portfolio_id="p1",
broker="kis",
status="enabled",
name="Samsung Electronics",
symbol="005930",
cash_balance=1_000_000.0,
asset_quantity=0.0,