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

실시간 데이터 오류 #34

Open
kwangSeok-Real opened this issue Apr 8, 2024 · 0 comments
Open

실시간 데이터 오류 #34

kwangSeok-Real opened this issue Apr 8, 2024 · 0 comments

Comments

@kwangSeok-Real
Copy link

api 를 유용하게 잘 사용해서 테스트 하고 있습니다.
주로 실시간 데이터를 �이용해서 거래를 하려고 하는데요.

코드는 github로 제공해 주신 web_socket.py 코드를 수정해 사용했거든요. 2개 종목 이상을 조회 가능�하도록 asyncio.create_task 를 이용했어요.

문제 없이 작동하다가 지난주 금요일부터 가끔 아래와 같은 에러가 뜹니다. 어떤 문제인지 알고 싶습니다.
시스템 구축시 안정성에 문제가 될 거 같아서요.

확인 좀 부탁드립니다.


Traceback (most recent call last):
File "test1.py", line 152, in
asyncio.run(main())
File "/Users/ks/opt/anaconda3/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Users/ks/opt/anaconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "test1.py", line 149, in main
await task1
File "test1.py", line 118, in get_realtime_data
data = await websocket.recv()
File "/Users/ks/opt/anaconda3/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 421, in recv
await self.ensure_open()
File "/Users/ks/opt/anaconda3/lib/python3.8/site-packages/websockets/legacy/protocol.py", line 726, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason

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

1 participant