stock AI 어드바이저 추가 및 UX 개선

- Gemini Pro 기반 AI 어드바이저 탭 추가 (TAB_ADVISOR)
  - 보유 종목 현재가 + 뉴스 → 종목별 매도/매수/분할매도 지침
  - 5분 캐시, 강제 새로고침 버튼
  - 경량 마크다운 렌더러 (AdvisorMarkdown)
- 실현손익 수수료 → 수수료 & 세금으로 레이블 변경
- 총 자산 추이 그래프: 0 데이터 제외 (장 미개장일 필터)
- Todo 완료 패널 하단 이동 + 날짜 필터 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 03:54:50 +09:00
parent 2c4b1e2e3a
commit d1ecf13400
4 changed files with 596 additions and 17 deletions

View File

@@ -354,3 +354,11 @@ export function updateBlogPost(id, data) {
export function deleteBlogPost(id) {
return apiDelete(`/api/blog/posts/${id}`);
}
// ── AI 포트폴리오 분석 (Gemini Pro) ──────────────────────────────────────────
// GET /api/stock/ai-analysis?force=true
// response: { analysis: string, generated_at: string, cached: bool, holdings_count: int }
export function getAiAnalysis(force = false) {
return apiGet(`/api/stock/ai-analysis${force ? '?force=true' : ''}`);
}