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 25603c390c feat: 8-K filing parser — Item 추출 + event 생성
AVGO 8-K (accession 0001193125-26-144028, Item 8.01, Google TPU 공급계약)이
DB에 수집은 되었으나 파싱/event 생성이 불가했던 문제 해결.

구현:
- sec_8k_parser.py: 8-K primary document HTML 파싱
  - extract_items(): regex 기반 Item 헤더 추출, 목차 중복 제거 (last-wins)
  - _strip_ixbrl_viewer(): documents_json의 /ix?doc=... URL → 직접 URL 변환
  - _find_primary_doc_url(): primary_document_url 우선 사용 (iXBRL viewer 회피)
  - Item 8.01 단독 filing: exhibit(9.01) 없이 본문에서 직접 content 추출
  - Item 9.01 skip, 나머지는 ITEM_EVENT_MAP으로 event_type 분류
  - Exhibit enrichment: 2.02/7.01/8.01 + EX-99.1 있을 때 exhibit content 우선
- sec_filing_events 테이블 신설 (UniqueConstraint: accession_number + item_number)
- sec_filings 테이블에 parsed_status / items_json 컬럼 추가
- index_filings() 완료 후 신규 8-K auto-parse 트리거
- GET /filings/events/{ticker}: lazy parse + 조회
- POST /filings/events/parse/bulk: backfill용 일괄 파싱
- FilingSummary에 parsed_status / items 필드 포함
- alembic migration: g8a9b0c1d2e3
- 테스트 22개 추가 (extract_items, strip_ixbrl, find_primary_doc, parse_filing)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 months ago
..
__init__.py Initial commit with full project improvements 5 months ago
alpaca.py docs: 데이터 보유 범위 및 백필 가이드 추가 5 months ago
attention.py perf: API 성능 개선 Round 2 — 9개 항목 (P6-P14) 5 months ago
catalog.py Initial commit with full project improvements 5 months ago
database.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
dividends.py feat: PIT dividend calendar + earnings surprise calendar endpoint 4 months ago
earnings.py feat: PIT dividend calendar + earnings surprise calendar endpoint 4 months ago
error_logs.py chore: remove SQLite entirely, PostgreSQL only 5 months ago
etf.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
filings.py feat: 8-K filing parser — Item 추출 + event 생성 4 months ago
financial.py perf: API 성능 개선 — 로그 분석 기반 6개 항목 수정 5 months ago
finra.py feat: Form 4 내부자 거래 + Earnings Surprise + FINRA 확장 5 months ago
fred.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
health.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
insider.py feat: Earnings Surprise를 SEC XBRL로 전환 + Insider/FINRA 과거 데이터 확장 5 months ago
migration.py Initial commit with full project improvements 5 months ago
news.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
overlay.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
price.py feat: yfinance rate limit 처리 강화 5 months ago
request_logs.py perf: API 성능 개선 Round 3 — 8개 항목 (P15-P22) 5 months ago
screener.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
stocks.py docs: 데이터 보유 범위 및 백필 가이드 추가 5 months ago
universe.py fix: isolated thread에 독립적인 DB 엔진 생성 5 months ago