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
..
attention feat(attention): Attention 서브시스템 추가 — 이벤트 중심 Wikipedia/GDELT 관심도 피처 5 months ago
overlay perf: API 성능 개선 Round 3 — 8개 항목 (P15-P22) 5 months ago
__init__.py Initial commit with full project improvements 5 months ago
alpaca_client.py Add Alpaca-specific DB table and Redis caching for Alpaca/FINRA endpoints 5 months ago
alpaca_price_service.py perf: API 성능 개선 Round 3 — 8개 항목 (P15-P22) 5 months ago
earnings_service.py feat: Earnings Surprise를 yfinance-plus로 전환 (Alpha Vantage 제거) 5 months ago
etf_holdings_fetcher.py fix(etf): as_of_date에 가장 가까운 파일링 반환하도록 수정 5 months ago
etf_loader_service.py Initial commit with full project improvements 5 months ago
financial_service.py perf: Phase 1-3 Stock Oracle API 성능 개선 5 months ago
finra_short_volume_service.py perf: API 성능 개선 Round 3 — 8개 항목 (P15-P22) 5 months ago
fred_proxy_service.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
fred_service.py Initial commit with full project improvements 5 months ago
index_constituents_service.py fix(stocks): Wikipedia 403 우회를 위해 User-Agent 헤더 추가 5 months ago
insider_transaction_service.py feat: Earnings Surprise를 SEC XBRL로 전환 + Insider/FINRA 과거 데이터 확장 5 months ago
news_social_service.py perf: API 성능 개선 Round 2 — 9개 항목 (P6-P14) 5 months ago
price_data_service.py perf: API 성능 개선 Round 2 — 9개 항목 (P6-P14) 5 months ago
real_sec_financial_service.py perf: API 성능 개선 — 로그 분석 기반 6개 항목 수정 5 months ago
screener_service.py feat(screener): add stock screener API with yfinance EquityQuery 5 months ago
sec_data_service.py Initial commit with full project improvements 5 months ago
sec_edgar_service.py Add SEC filings indexing, search, and exhibit extraction (8-K, 6-K, 20-F, 40-F) 5 months ago
sec_filings_service.py fix(sec): exhibit timeout 15초 → 25초 (2단계 fetch 고려) 5 months ago
sec_http_client.py fix(sec): resp.get_encoding() 버그 수정 — 504 직접 원인 5 months ago
universe_service.py feat: 백테스팅 유니버스 과거 시점 주식 스크리닝 (Historical Stock Universe) 5 months ago
yahoo_52week_gainers_service.py Initial commit with full project improvements 5 months ago
yahoo_most_active_service.py Initial commit with full project improvements 5 months ago