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

在协程里用不了get_kline_serial? #397

Open
kkqy opened this issue May 10, 2021 · 0 comments
Open

在协程里用不了get_kline_serial? #397

kkqy opened this issue May 10, 2021 · 0 comments

Comments

@kkqy
Copy link

kkqy commented May 10, 2021

我用的visual studio code
也提示:
Exception: TqSdk 使用了 python3 的原生协程和异步通讯库 asyncio,您所使用的 IDE 不支持 asyncio, 请使用 pycharm 或其它支持 asyncio 的 IDE
我发现只要在协程里调用get_kline_serial就会提示,在协程外面调用就不会报这个错误。
我看了一下貌似tqsdk也依赖那个事件循环,我协程本来就运行在事件循环里面,就不能共用一个事件循环嘛?

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