주식 즉시 스크래핑 api 오류 수정

This commit is contained in:
2026-01-26 03:58:00 +09:00
parent 5dab3d99c1
commit 5f4742085c
3 changed files with 137 additions and 73 deletions

View File

@@ -58,12 +58,16 @@ export function deleteHistory(id) {
return apiDelete(`/api/history/${id}`);
}
export function getStockNews(limit = 20) {
return apiGet(`/api/stock/news?limit=${limit}`);
export function getStockNews(limit = 20, category) {
const qs = new URLSearchParams({ limit: String(limit) });
if (category) {
qs.set("category", category);
}
return apiGet(`/api/stock/news?${qs.toString()}`);
}
export function triggerStockScrap() {
return apiPost("/api/admin/stock/scrap");
return apiPost("/api/stock/scrap");
}
export function getStockHealth() {