feat(tests): 신규 키움 웹소켓 조건검색 및 실시간 조건검색 테스트 추가

변경 사항
----
- _test_kiwoom_condition_list.py: 키움 웹소켓 조건검색 '목록조회' 기능을 단독으로 테스트하는 스크립트 추가
- _test_kiwoom_condition_realtime.py: 'momentum' 조건식을 실시간으로 등록하고 초기 매칭 종목 리스트 및 실시간 편입/이탈을 수신하는 테스트 스크립트 추가
- _verify_columnar_bitid.py, _verify_shared_e2e_breakout.py, _verify_shared_e2e.py: 공유 메모리 및 dict 간의 데이터 일관성을 검증하는 테스트 추가

영향
----
- 신규 테스트 스크립트 추가로 키움 웹소켓 API의 기능 검증 및 안정성을 높임
- 기존 기능에 대한 영향 없음

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 01:27:00 +09:00
parent d8ba01afa4
commit 61c72a8a4c
171 changed files with 176914 additions and 7329 deletions

View File

@@ -74,7 +74,7 @@ def load_kiwoom_creds(force_real: bool = True) -> tuple[str, str, bool]:
key = (r.get("KIWOOM_APP_KEY") or "").strip()
secret = (r.get("KIWOOM_APP_SECRET") or "").strip()
return key, secret, False # 항상 실전 도메인
from kis_ws import _get_kiwoom_creds # type: ignore
from kis_trader.ws.kis_ws import _get_kiwoom_creds
return _get_kiwoom_creds(db)
finally:
db.close()
@@ -128,7 +128,7 @@ def main() -> int:
print()
# WS 인스턴스
from kiwoom_ws import KiwoomWebSocketPriceCache
from kis_trader.ws.kiwoom_ws import KiwoomWebSocketPriceCache
ws = KiwoomWebSocketPriceCache(app_key, app_secret, is_mock=is_mock)
if not ws.start():