⚙️ [기능추가][AI] 국내주식 OHLCV 수집 파이프라인 추가 - #375
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
Walkthrough국내 주식 일봉 OHLCV 수집기를 추가했습니다. 설정과 CLI로 수집 조건을 지정하고, 데이터를 표준화해 CSV·Parquet 또는 PostgreSQL에 저장하며, 실패 종목을 별도 로그로 기록합니다. 관련 의존성, 테스트, README와 저장 경로 무시 설정도 포함됩니다. Changes국내 주식 수집 파이프라인
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant CLI as collect_korea_stocks.py
participant Config as KoreaStockCollectorConfig
participant Collector as KoreaStockDataCollector
participant Source as FinanceDataReader_or_pykrx
participant Storage as File_or_PostgreSQL
CLI->>Config: 설정 파일 로드 및 CLI override 병합
Config-->>CLI: 수집 설정 반환
CLI->>Collector: 설정으로 수집기 생성
Collector->>Source: 종목 목록 및 일봉 OHLCV 조회
Source-->>Collector: 원천 데이터 반환
Collector->>Collector: OHLCV 정규화 및 배치 처리
Collector->>Storage: 파일 저장 또는 DB upsert
Collector-->>CLI: success/empty/failed/rows 통계 반환
Suggested reviewers: Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)AI/modules/data_collector/config/korea_stocks.jsonTraceback (most recent call last): AI/requirements.txtTraceback (most recent call last): Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
변경 내용
price_data테이블 업서트를 지원합니다.변경 이유
국내 주식 데이터를 반복 가능하게 수집·저장하는 파이프라인이 없어, 이후 뉴스·공시 이벤트와 가격 반응을 연결하는 분석 작업을 진행하기 어려웠습니다. 이번 변경으로 데이터 수집 계층을 먼저 독립적으로 사용할 수 있게 했습니다.
Closes #372
영향 범위
AI/modules/data_collector국내주식 수집 모듈AI/requirements.txt의 FinanceDataReader 의존성검증 결과
origin/main리베이스 완료참고 사항
Summary by CodeRabbit
새 기능
문서
검증