Кабинет: структура портфеля и ближайшие выплаты за 90 дней (купоны, оферты, погашения, дивиденды)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4YVo4UMopqT5DzicqpPjL
This commit is contained in:
@@ -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) плюс выплаты дохода (учёт).
|
||||
|
||||
Reference in New Issue
Block a user