Skip to content

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

Open
seohyunjun wants to merge 11 commits into
masterfrom
feature/index-name-lookup
Open

seohyunjun wants to merge 11 commits into
masterfrom
feature/index-name-lookup

Conversation

@seohyunjun

Copy link
Copy Markdown
Owner

Summary

Closes sharebook-kr#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
Repository owner locked and limited conversation to collaborators Sep 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant