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
attention.py fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
dividend.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_log.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
filing.py feat: 8-K filing parser — Item 추출 + event 생성 4 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