fix: 유니버스 데이터 품질 — 특수 코드 필터링 + KOSDAQ yfinance 접미사 - #413
Merged
Conversation
모멘텀 유니버스 등 FDR 상장목록 기반 후보 풀에 '0126Z0'(신형우선주 등) 같은
특수 코드가 섞여 가격 조회 실패("possibly delisted") 노이즈와 유니버스 슬롯
낭비를 만들었다. _fdr_stock_listing_table 정규화 단계에서 6자리 초과 또는
비숫자 코드를 제외한다(5자리 숫자는 기존대로 zfill 정상화).
실측: backtest_momentum_top에서 특수 코드 실패가 사라짐. 잔존하는 정상 6자리
코드의 조회 실패는 별개 이슈(KOSDAQ 종목의 yfinance 폴백이 .KS 접미사 사용)로
분리 기록. 회귀 테스트 추가, 전체 1490 passed.
easygap
added a commit
that referenced
this pull request
Jul 6, 2026
fix: FDR 후보 풀 특수 종목코드 필터링 — 유니버스 노이즈 제거
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제 (research 경로 데이터 품질)
모멘텀 유니버스 등 FDR 상장목록 기반 후보 풀에
0126Z0(신형우선주 등) 같은 6자리 숫자가 아닌 특수 코드가 섞여, 가격 조회 실패("possibly delisted") 노이즈와 유니버스 슬롯 낭비를 만들었다.수정
_fdr_stock_listing_table정규화 단계에서 6자리 초과·비숫자 코드 제외(5자리 숫자는 기존대로 zfill 정상화). 실측으로 특수 코드 실패 소멸 확인.분리된 잔존 이슈 (이 PR 범위 아님)
필터 후에도 정상 6자리 코드 일부가 실패하는 것은 KOSDAQ 종목의 yfinance 폴백이
.KS(KOSPI) 접미사를 쓰기 때문 — 별도 작업 칩으로 기록했다(FDR이 1차 소스라 실영향은 제한적).검증
회귀 테스트(특수 코드 제외·5자리 정상화), 전체 1490 passed