fix(etf): as_of_date에 가장 가까운 파일링 반환하도록 수정
- _load_snapshot_holdings(): DB 캐시 스냅샷이 as_of_date와 120일 초과 차이나면 stale로 판단하고 None 반환 → SEC 신규 fetch 트리거 - _find_best_filing_and_xml(): eligible 필터에 365일 하한 추가, target_date 기준 1년 이내 파일링만 우선 후보로 사용 (하한 내 후보 없으면 기존 전체 검색 fallback 유지) 수정 전: SPY?as_of_date=2021-06-30 → 2019-11-18 (19개월 stale) 수정 후: SPY?as_of_date=2021-06-30 → 2021-05-28 (정상) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
e75f1e1c72
commit
d869ea98bd
Loading…
Reference in New Issue