You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I Luk Kim b3092a0d5e feat: 백테스팅 유니버스 과거 시점 주식 스크리닝 (Historical Stock Universe)
## 새 기능
- GET  /universe/screen — 과거 날짜 기준 시총/섹터/거래소 필터링
- GET  /universe/registry — 추적 종목 목록 조회
- POST /universe/admin/discover — yfinance screener로 US 주식 자동 등록
- POST /universe/admin/build-snapshots — SEC EDGAR × yfinance 월별 시총 스냅샷 생성

## 데이터 모델
- universe_ticker_registry: 종목 마스터 (ticker, name, cik, sector, industry, exchange)
- universe_snapshot: 월별 스냅샷 (ticker, snapshot_date, market_cap, close_price, shares_outstanding)
  - 인덱스: (snapshot_date, market_cap) — 핵심 스크리닝 쿼리 최적화
  - ~4000종목 × 120개월 ≈ 480K 행 예상

## 데이터 흐름
1. SEC EDGAR companyfacts → shares_outstanding (최신, 주가분할 반영)
2. yfinance bulk download 1mo interval → 월별 종가
3. market_cap = latest_shares × close_price (yfinance 분할조정 가격과 일관성)

## 제한사항
- Survivorship bias: 현재 상장 종목만 (상폐 종목 미포함)
- 자사주 매입으로 과거 시총 ~20% 오차 가능 (분할 오차 방지가 주목적)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 months ago
..
__init__.py Initial commit with full project improvements 5 months ago
attention.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
earnings.py feat: Form 4 내부자 거래 + Earnings Surprise + FINRA 확장 5 months ago
error_log.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
filing.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
financial.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
finra.py Add Alpaca-specific DB table and Redis caching for Alpaca/FINRA endpoints 5 months ago
insider.py feat: Form 4 내부자 거래 + Earnings Surprise + FINRA 확장 5 months ago
overlay.py Add Phase 5 Attention Overlay API and fix Redis port mismatch 5 months ago
request_log.py Initial commit with full project improvements 5 months ago
screener.py feat(screener): add stock screener API with yfinance EquityQuery 5 months ago
universe.py feat: 백테스팅 유니버스 과거 시점 주식 스크리닝 (Historical Stock Universe) 5 months ago
validators.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago