Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

공매도 정보 획득시 json의 key값이 'OutBlock_1' 이어서 2년 넘는경우엔 key error 가 납니다. #174

Open
objects76 opened this issue Feb 1, 2024 · 1 comment

Comments

@objects76
Copy link

objects76 commented Feb 1, 2024

pykrx\website\krx\krxio.py

            resp = super().read(**params).json()

            if result is None:
                result = resp
            else:
                key = 'OutBlock_1' if 'OutBlock_1' in resp else 'output'  # 이렇게 수정해서 정상적으로 데이터 획득했습니다.
                result[key] += resp[key]
@mr-yoo
Copy link
Collaborator

mr-yoo commented Mar 14, 2024

호출하신 코드를 공유 해주실 수 있을까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants