feat(portfolios): allow unassigned strategy creation

This commit is contained in:
2026-08-22 21:21:24 +09:00
parent 6e17a53b17
commit 5d6a0ad013
13 changed files with 49 additions and 46 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ class PortfolioCreateRequest(BaseModel):
asset_quantity: float = Field(default=0.0, ge=0.0)
asset_price: float = Field(default=0.0, ge=0.0)
profit_buffer: float = Field(default=0.0, ge=0.0)
strategy_id: str = Field(..., min_length=1)
strategy_id: str | None = Field(default=None, min_length=1)
managed_by_daemon_id: str | None = None
user_id: str | None = None # admin-only: override owner