diff --git a/backend/app/schemas/backtest.py b/backend/app/schemas/backtest.py index 6d057d4..5cc1523 100644 --- a/backend/app/schemas/backtest.py +++ b/backend/app/schemas/backtest.py @@ -121,6 +121,7 @@ class TransactionItem(BaseModel): id: int date: date ticker: str + name: str | None = None action: str shares: int price: FloatDecimal diff --git a/backend/app/schemas/portfolio.py b/backend/app/schemas/portfolio.py index eafb9df..05e61e4 100644 --- a/backend/app/schemas/portfolio.py +++ b/backend/app/schemas/portfolio.py @@ -71,6 +71,7 @@ class TransactionCreate(TransactionBase): class TransactionResponse(TransactionBase): id: int + name: str | None = None class Config: from_attributes = True @@ -113,6 +114,7 @@ class PortfolioDetail(PortfolioResponse): # Snapshot schemas class SnapshotHoldingResponse(BaseModel): ticker: str + name: str | None = None quantity: int price: FloatDecimal value: FloatDecimal