Improve analysis API async contracts and startup helpers (#656)

* Improve analysis API async contracts and startup helpers

* Fix rebased analysis API contract regressions

* fix: align frontend report type union with full responses
This commit is contained in:
mumu
2026-03-15 20:54:04 +08:00
committed by GitHub
parent 631bc820c5
commit d42952ef5e
22 changed files with 698 additions and 119 deletions

View File

@@ -224,6 +224,8 @@
| `/api/v1/agent/chat/stream` | POST (SSE) | Agent 多輪策略對話(流式) |
| `/api/health` | GET | 健康檢查 |
> 備註:`POST /api/v1/analysis/analyze` 在 `async_mode=false` 時僅支援單一股票;批量 `stock_codes` 需使用 `async_mode=true`。異步 `202` 對單股回傳 `task_id`,對批量回傳 `accepted` / `duplicates` 匯總。
## 項目結構
```