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.
## 새 기능 - 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 | |
|---|---|---|
| .. | ||
| versions | 5 months ago | |
| README | 5 months ago | |
| env.py | 5 months ago | |
| script.py.mako | 5 months ago | |
README
Generic single-database configuration.