feat: 대시보드 바스켓 트랙 화면 — 내 돈이 웹에 보이게#441
Merged
Merged
Conversation
대시보드는 있었지만 정작 바스켓 트랙의 돈이 화면에 없었다 — /api/portfolio는 기본 계정만 보여줘서 kr_pocket·kr_diversified_hold의 원금/평가/수익률이 어디에도 안 떴다. 추가: - /api/baskets (DB 전용 — 10초 폴링에 네트워크 조회 없음): 바스켓별 최신 스냅샷(평가금·현금·TWR 누적수익률·MDD — 일일 사이클 저장값 그대로, 재계산 없음) + 누적 원금(초기+입금) + 원금 대비 손익(원) + 주식 배치율(실제/설계) + 보유 목록 - 바스켓 트랙(내 돈) 섹션: 바스켓별 카드 7종 - 수익률 추이 차트 계정 선택기(기본 = 첫 바스켓, 기본 계정 전환 가능) 실서버 검증(운영 DB): 두 트랙 숫자 정상 표시, HTML 섹션 렌더 확인. 전체 스위트 1635 통과.
easygap
added a commit
that referenced
this pull request
Jul 6, 2026
feat: 대시보드 바스켓 트랙 화면 — 내 돈이 웹에 보이게
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
오너 질문("웹으로 데이터 보는 기능은 불필요? 누락?")에 대한 답: 대시보드(
--mode dashboard)는 있었지만 정작 바스켓 트랙의 돈이 화면에 없었습니다 —/api/portfolio는 기본 계정('')만 보여줘서 kr_pocket·kr_diversified_hold의 원금/평가/수익률이 어디에도 안 떴습니다. 이걸 채웁니다.추가
/api/baskets(신규, DB 전용 — 10초 폴링에 네트워크 조회 없음): enabled 바스켓별/api/snapshots?account_key=재사용실서버 검증 (운영 DB)
HTML에 basketTracks/chartAccount 섹션 렌더 확인, 서버 정상 기동·종료.
테스트
tests/test_dashboard_baskets.py: 원금(입금 포함)·스냅샷 그대로(TWR 재계산 금지)·원금 대비 손익·배치율·보유 계약 + 스냅샷 없는 신규 트랙 null 처리 + HTTP 엔드포인트 + HTML 섹션 존재.