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

行情推送的API在callback都會報錯 #3

Open
dogwong opened this issue May 27, 2019 · 1 comment
Open

行情推送的API在callback都會報錯 #3

dogwong opened this issue May 27, 2019 · 1 comment

Comments

@dogwong
Copy link

dogwong commented May 27, 2019

我嘗試過 subQotUpdateBasicQot 和 subQotUpdateTicker 用作接收推送
但都會發生錯誤

例如我:
ft.subQotUpdateBasicQot((basicQotList) => { console.log(basicQotList); })
則會在socket.js:277 中
Error: 通知回调执行错误,response:Qot_UpdateBasicQot(3005),reqId:2,bodyLen:563,堆栈:Error: invalid wire type 7 at offset 96
at BufferReader.Reader.skipType

@yisbug
Copy link
Owner

yisbug commented Jun 12, 2019

抱歉才看到这里。
我这里配合最新版本的 FutuOpenD 使用这个 API,一切正常没有报错。目前根据你提供的信息我无法判断是什么原因导致的。
这个错误只有在执行回调函数发生错误时,才会出现。
方便的话,提供一下FutuOpenD 的版本、futuquant 的版本、node 版本,以及更多代码,我再尝试定位一下这个问题。

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