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

[버그]실시간 해제요청이 정상적으로 되지 않습니다. #1

Closed
pagloria opened this issue Mar 20, 2023 · 0 comments
Closed

Comments

@pagloria
Copy link


name: 버그 제보
about: 의도 되지 않은 버그를 제보합니다.
title: "실시간 해제요청이 정상적으로 되지 않습니다."
labels: 버그
assignees: ''


버그 설명

실시간 해제요청이 정상적으로 되지 않습니다.

재구현

def _send_request(
self,
tr_id: str,
tr_key: str,
tr_type: bool,
timeout: int = 10,
verbose: bool = True,
) -> KisRTSysResponse | None:
id = self._mkid(tr_id, tr_key)

    if (id in self.subscribed):
        return None

id in self.subscribed 에 의해 구독중인지 확인하는데, 구독중인 종목을 해제하고자 하더라도 None을 반환하고 있습니다.
즉 구독 해제를 요청하기도 전에 None을 반환합니다.

원인

if (id in self.subscribed) &(tr_type ==True):
return None
등으로 수정하면 해결될 것 같습니다.

개발 환경

파이썬 버전: 3.11

사용 라이브러리 버전

[귀찮으시면 안 써도 돼요...]

이름 버전
requests ?
SQLAlchemy ?
websocket-client ?
pycryptodome ?
colorlog ?

추가 내용

Soju06 added a commit that referenced this issue Mar 20, 2023
@Soju06 Soju06 closed this as completed Mar 20, 2023
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

No branches or pull requests

2 participants