nodejs-for-FutuOpenD icon indicating copy to clipboard operation
nodejs-for-FutuOpenD copied to clipboard

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

Open dogwong opened this issue 6 years ago • 1 comments

我嘗試過 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

dogwong avatar May 27 '19 07:05 dogwong

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

yisbug avatar Jun 12 '19 11:06 yisbug