Skip to content

feat: add 지수이름조회 class and name-based lookup for 지수구성종목 (#295) - #296

Merged
seohyunjun merged 1 commit into
sharebook-kr:masterfrom
seohyunjun:feature/index-name-lookup
Sep 19, 2026
Merged

seohyunjun merged 1 commit into
sharebook-kr:masterfrom
seohyunjun:feature/index-name-lookup

Conversation

@seohyunjun

Copy link
Copy Markdown
Collaborator

Summary

Closes #295

지수이름조회 클래스를 추가하고 지수구성종목 클래스에 이름 기반 조회를 확장합니다.

Changes

  • Add 지수이름조회(KrxWebIo) class in pykrx/website/krx/market/core.py

    • bld → dbms/comm/finder/finder_equidx
    • fetch(search_text) → codeName 인덱스 DataFrame 반환 (full_code, short_code, marketCode, marketName)
    • get_indidx(name) → 지수 이름 → (short_code, full_code) 조회
    • 클래스 레벨 KRX_INDIDX 캐시
  • Extend 지수구성종목.fetch():

    • 기존: fetch(date, ticker, group_id) — 호환성 유지
    • 신규: fetch(date, ticker, group_id=None) → 이름 기반 조회

Test Plan

  • 11 new integration tests added in tests/integration/test_index_name_lookup.py
  • All 137 tests pass (126 existing + 11 new)
======================= 137 passed, 4 warnings in 30.64s =======================

@seohyunjun
seohyunjun force-pushed the feature/index-name-lookup branch from 79c0194 to caca5c8 Compare September 18, 2026 09:27
@seohyunjun
seohyunjun merged commit 50f73e2 into sharebook-kr:master Sep 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: '지수구성종목' 클래스 확장

1 participant