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
+5
View File
@@ -110,6 +110,7 @@ class FakeRepo:
portfolio_id: str,
symbol: str,
*,
name: str | None = None,
broker: str = "kis",
status: str = "enabled",
active_strategy_id: str | None = None,
@@ -121,6 +122,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,
@@ -134,6 +136,7 @@ class FakeRepo:
*,
broker: str,
status: str,
name: str,
symbol: str,
cash_balance: float,
asset_quantity: float,
@@ -146,6 +149,7 @@ class FakeRepo:
portfolio_id=portfolio_id,
broker=broker,
status=status,
name=name,
symbol=symbol,
cash_balance=cash_balance,
asset_quantity=asset_quantity,
@@ -275,6 +279,7 @@ def _portfolio() -> Portfolio:
portfolio_id="005930:tv",
broker="kis",
status="enabled",
name="Samsung Electronics",
symbol="005930",
cash_balance=1_000_000.0,
asset_quantity=1.0,