lotto 추천 및 시뮬레이션 시스템 고도화

This commit is contained in:
2026-02-23 22:27:21 +09:00
parent 1d78b2c430
commit 628a47b2ec
4 changed files with 617 additions and 177 deletions

View File

@@ -82,6 +82,25 @@ export function deleteHistory(id) {
return apiDelete(`/api/history/${id}`);
}
// ── 시뮬레이션 관련 API ──────────────────────────────────────────────────────
export function getBestPicks(limit = 20) {
return apiGet(`/api/lotto/best?limit=${limit}`);
}
export function getAnalysis() {
return apiGet('/api/lotto/analysis');
}
export function triggerSimulate(nCandidates = 20000, topK = 100, bestN = 20) {
const qs = new URLSearchParams({
n_candidates: String(nCandidates),
top_k: String(topK),
best_n: String(bestN),
});
return apiPost(`/api/admin/simulate?${qs.toString()}`);
}
export function getStockNews(limit = 20, category) {
const qs = new URLSearchParams({ limit: String(limit) });
if (category) {