feat: EOD 집계 시장 필터 추가 (issue #86) #117

Merged
jihoson merged 1 commits from feature/issue-86-eod-market-filter into main 2026-02-10 04:24:58 +09:00
Collaborator

Summary

  • aggregate_daily_from_trades()에 market 파라미터 추가 (시장별 독립 집계)
  • market=None 시 자동으로 DISTINCT market 조회하여 전체 시장 처리
  • L6 키에 시장 suffix 추가 (total_pnl_KR, win_rate_US 등)
  • L5 weekly, L4 monthly 집계에 시장별 분리 + 글로벌 통합 지원
  • main.py 시장 종료 감지 시 aggregate_daily_from_trades(date, market) 호출 연결

Test plan

  • test_aggregate_daily_from_trades — 시장별 L6 키 검증
  • test_aggregate_weekly_from_daily — 시장별 L5 키 검증
  • test_run_all_aggregations — 전체 레이어 시장별 집계 검증
  • 42/42 tests passed, ruff clean

Closes #86

## Summary - aggregate_daily_from_trades()에 market 파라미터 추가 (시장별 독립 집계) - market=None 시 자동으로 DISTINCT market 조회하여 전체 시장 처리 - L6 키에 시장 suffix 추가 (total_pnl_KR, win_rate_US 등) - L5 weekly, L4 monthly 집계에 시장별 분리 + 글로벌 통합 지원 - main.py 시장 종료 감지 시 aggregate_daily_from_trades(date, market) 호출 연결 ## Test plan - [x] test_aggregate_daily_from_trades — 시장별 L6 키 검증 - [x] test_aggregate_weekly_from_daily — 시장별 L5 키 검증 - [x] test_run_all_aggregations — 전체 레이어 시장별 집계 검증 - [x] 42/42 tests passed, ruff clean Closes #86
agentson added 1 commit 2026-02-10 04:24:25 +09:00
feat: EOD aggregation with market filter (issue #86)
Some checks failed
CI / test (pull_request) Has been cancelled
78021d4695
- Add market parameter to aggregate_daily_from_trades() for per-market L6 aggregation
- Store market-scoped keys (total_pnl_KR, win_rate_US, etc.) in L6/L5/L4 layers
- Hook aggregate_daily_from_trades() into market close detection in run()
- Update tests for market-scoped context keys

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jihoson merged commit 0685d62f9c into main 2026-02-10 04:24:58 +09:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#117