UI 디자인 대대적으로 대시보드 형태의 전문적인 느낌으로 재구성

This commit is contained in:
2026-03-04 01:39:26 +09:00
parent 840b0a5300
commit 618d5f8e6f
21 changed files with 3499 additions and 374 deletions

View File

@@ -136,3 +136,22 @@ export function updatePortfolio(id, fields) {
export function deletePortfolio(id) {
return apiDelete(`/api/portfolio/${id}`);
}
// ── 예수금 API ───────────────────────────────────────────────────────────────
export function upsertCash(broker, cash) {
return apiPut('/api/portfolio/cash', { broker, cash });
}
export function deleteCash(broker) {
return apiDelete(`/api/portfolio/cash/${encodeURIComponent(broker)}`);
}
// ── 시장 심리 지표 API ────────────────────────────────────────────────────────
// CNN Fear & Greed Index (개발: vite proxy /ext/feargreed, 프로덕션: nginx proxy 필요)
export async function getFearAndGreed() {
const res = await fetch('/ext/feargreed', { headers: { Accept: 'application/json' } });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
return res.json();
}