Кабинет: структура портфеля и ближайшие выплаты за 90 дней (купоны, оферты, погашения, дивиденды)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4YVo4UMopqT5DzicqpPjL
This commit is contained in:
zuevav
2026-09-18 16:02:48 +03:00
parent c32df3752e
commit c32f399acc
5 changed files with 231 additions and 6 deletions
+5 -1
View File
@@ -310,7 +310,11 @@ func registerLKAPI(mux *http.ServeMux, rc *RuntimeConfig, svc *Service) {
return
}
pf.Note = strings.TrimSpace(pf.Note)
lkJSON(w, http.StatusOK, map[string]any{"portfolio": pf, "contract": u.Contract, "full_name": u.FullName})
resp := map[string]any{"portfolio": pf, "contract": u.Contract, "full_name": u.FullName}
if q.Get("view") != "archive" {
resp["upcoming"] = lkUpcoming(r.Context(), fancy, pf.Positions, 90) // ближайшие выплаты за 90 дней
}
lkJSON(w, http.StatusOK, resp)
})
// Операции по брокерскому счёту: сделки и движения бумаг (SPECTRE) плюс выплаты дохода (учёт).