VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 5
声望: 0

使用2.1.8版连接0es后,无法查询合约,也不能订阅,这是bug吗?

Member
avatar
加入于:
帖子: 5
声望: 0

用宽睿提供的账号登录,界面日志显示tcp通道连接成功,但是无法订阅,也查询不了。宽睿的人看了oes日志说你们用的是0.16的api,现在线上的现货交易都是用的他们0.15版api,这样的话是不是vnpy已经不支持链接oes做股票交易了

Member
avatar
加入于:
帖子: 4680
声望: 285

有报错截图吗?
请问有合约查询完成日志的输出吗?

Member
avatar
加入于:
帖子: 5
声望: 0

description

Member
avatar
加入于:
帖子: 5
声望: 0

20210111-11:46:55.050 DEBUG [ 0] (spk_malloc.c:84) <api.SMalloc_MallocHugepageAble> - Ignore hugepage flag on non-Linux system! size[550909440]
20210111-11:46:55.050 DEBUG [ 0] (spk_malloc.c:99) <api.SMalloc_MallocHugepageAble> - Malloc memory success! pMem[0000020A82FBC040], size[550909440]
20210111-11:46:55.222 DEBUG [ 0] (spk_ring_buf.c:426) <api.SRingBuf_InitAndAttach2> - Init ringbuf success! maxItem[524288], maxDataSize[896], dataAreaSize[482345088], isDynamic[0], isDynamicWithHugepageShm[0], isUnsyncRead[0], isUnsyncWrite[0], isOverlayWrite[0], isBlockingWait[0]
20210111-11:46:55.222 INFO [ 0] (spk_general_endpoint.c:1944) <api.SEndpoint_CreateContext> - Create context success! MAX_REMOTE_CNT[128], extendedChannelCfgSize[532200], totalContextSize[68563456], asyncQueueLength[500000], hugepageFlag[0], totalQueueSize[482345088]
20210111-11:46:55.222 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.mdsapi_communication], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-11:46:55.222 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.mdsapi_callback], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-11:46:55.222 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.mdsapi_io_thread], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-11:46:55.222 INFO [ 0] (mds_async_api.c:2262) <api.MdsAsyncApi_Start> - @@@ Will start async api threads... { pid[0], tid[0], channelCount[1], isPreconnectAble[1], isCompressible[1], isUdpFilterable[0], isAsyncCallbackAble[1], isAsyncCallbackBusyPollAble[1], asyncQueueLength[524288], takeoverStartThreadFlag[0] }
20210111-11:46:55.316 DEBUG [ 0] (general_client_env.c:461) <api.SGeneralClient_TryConnectToAddrList> - connect success! uri[tcp://139.196.228.232:5103], socketFd[2616], protocolType[0], isUnblockAble[0], isContinue[0], lastConnectIdx[0], lastHostNum[1]
20210111-11:46:55.363 DEBUG [ 0] (mds_api.c:536) <api._MdsApi_GetLocalIpAndMac> - Use local ip [192.168.43.129]
20210111-11:46:55.378 DEBUG [ 0] (mds_api.c:564) <api._MdsApi_GetLocalIpAndMac> - Use local mac [B0:7D:64:86:5F:0B]
20210111-11:46:55.425 INFO [ 0] (mds_api.c:968) <api._MdsApi_DoLogon> - Logon success! url[tcp://139.196.228.232:5103], socketFd[2616], time[20210111-11:46:55.425], username[customer793], sessionId[16572061557183774629], clientId[798], heartBtInt[30], remoteSetNum[5], remoteHostNum[1], leaderHostNum[1], protocolHints(I/O)[0 / 0], localIp[192.168.43.129], localMac[B0:7D:64:86:5F:0B], driverId[], targetCompId[MDS_0.15.11.15], applVerId(C/S)[0.16.1.1 / 0.15.11.15]
20210111-11:46:55.456 INFO [ 0] (spk_general_endpoint.c:1502) <CommThread._SEndpoint_CommunicationThreadMain> - @@@ Communication thread is running... { pid[0], tid[0], CPUSET[''], channelCount[1], isPreconnectAble[1], callbackThreadAble[yes], ioThreadAble[no] }
20210111-11:46:55.456 INFO [ 0] (spk_general_endpoint.c:612) <CommThread.SEndpoint_OnConnect> - Channel connected, callback OnConnect... server[139.196.228.232:5103], socketFd[2616], channelTag[tcpServer], channelType[11], lastInMsgSeq[0], lastOutMsgSeq[0]
20210111-11:46:55.456 DEBUG [ 0] (mds_api.c:1730) <CommThread.MdsApi_SubscribeMarketData> - Send market data request success! server[139.196.228.232:5103], socketFd[2616], subMode[0 (0)], tickType[0], sseStockFlag[0], sseIndexFlag[0], sseOptionFlag[0], szseStockFlag[0], szseIndexFlag[0], szseOptionFlag[0], dataTypes[0x1], beginTime[0], isRequireInitialMktData[0],
channelNos[0], tickExpireType[0], tickRebuildFlag[0], subSecurityCnt[1 (sent:1, total:1)]
20210111-11:46:55.487 INFO [ 0] (vnoesmd.cpp:91) CommThread.MdApi::OnConnected - 订阅行情成功! channelTag[tcpServer]
20210111-11:46:55.487 INFO [ 0] (_spk_general_endpoint.ccc:863) <CbThread.SEndpoint_AbstractCallbackThreadMain> - @@@ Async callback thread is running... { pid[0], tid[0], CPUSET[''], timeoutMs[0], maxQueueItem[524288], queueItemSize[896], totalQueueSize[482345088], busyPollCnt[10000], maxLoopCount[1000] }
20210111-11:46:55.487 INFO [ 0] (spk_general_endpoint.c:1045) <CommThread._SEndpoint_CommChannelMainImpl> - @@@ Async channel is running... { pid[0], tid[0], channelCount[1 / 1], isPreconnectAble[1] }
20210111-11:46:55.525 INFO [ 0] (vnoesmd.cpp:557) api.MdApi::init - 启动交易接口实例...
20210111-11:46:55.525 DEBUG [ 0] (spk_malloc.c:84) <api.SMalloc_MallocHugepageAble> - Ignore hugepage flag on non-Linux system! size[70698496]
20210111-11:46:55.525 DEBUG [ 0] (spk_malloc.c:99) <api.SMalloc_MallocHugepageAble> - Malloc memory success! pMem[0000020AA454A040], size[70698496]
20210111-11:46:55.540 DEBUG [ 0] (spk_ring_buf.c:426) <api.SRingBuf_InitAndAttach2> - Init ringbuf success! maxItem[131072], maxDataSize[512], dataAreaSize[70254720], isDynamic[0], isDynamicWithHugepageShm[0], isUnsyncRead[0], isUnsyncWrite[0], isOverlayWrite[0], isBlockingWait[0]
20210111-11:46:55.540 INFO [ 0] (spk_general_endpoint.c:1944) <api.SEndpoint_CreateContext> - Create context success! MAX_REMOTE_CNT[128], extendedChannelCfgSize[8], totalContextSize[442880], asyncQueueLength[100000], hugepageFlag[0], totalQueueSize[70254720]
20210111-11:46:55.540 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.oesapi_report], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-11:46:55.540 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.oesapi_callback], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-11:46:55.556 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.oesapi_io_thread], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-11:46:55.556 INFO [ 0] (oes_client_sample.cpp:381) api.Quant360::OesClientApi::Start - API version: 0.16.1.1
20210111-11:46:55.603 DEBUG [ 0] (general_client_env.c:461) <api.SGeneralClient_TryConnectToAddrList> - connect success! uri[tcp://106.15.58.119:6401], socketFd[2688], protocolType[0], isUnblockAble[0], isContinue[0], lastConnectIdx[0], lastHostNum[1]
20210111-11:46:55.650 ERROR [ 0] (oes_api.c:6223) <api._OesApi_DoPreLogon> - Api version rejected by server! url[tcp://106.15.58.119:6401], socketFd[2688], username[customer793], errCode[1005], applVerId(C/S)[0.16.1.1 / 0.15.11.15], minApplVerValue(C/S)[1001601011 / 0.15.9]
20210111-11:46:55.760 ERROR [ 0] (general_client_env.c:759) <api.SGeneralClient_TryLogonSpkReplicaSet> - Logon failure, try connect to next node! addrCnt[1], addr0.uri[tcp://106.15.58.119:6401], isUnblockAble[0], ret[0], error[14]
20210111-11:46:55.760 ERROR [ 0] (oes_api.c:9132) <api.OesApi_TryInitQryChannel> - Logon OES cluster (ReplicaSet) failure! ret[-14], isUnblockAble[0]
20210111-11:46:55.760 ERROR [ 0] (oes_client_sample.cpp:409) api.Quant360::OesClientApi::Start - 杩炴帴鏌ヨ閫氶亾澶辫触! error[1005 - 鍗忚鐗堟湰涓嶅吋瀹筣
20210111-12:45:25.497 INFO [ 0] (spk_general_endpoint.c:2416) <api.SEndpoint_Stop> - Stop endpoint threads... pid[0], tid[0], communicationThreadTid[0], callbackThreadTid[0], ioThreadTid[0], queueReceived[68], queueRemoved[0]
20210111-12:45:25.497 WARN [ 0] (_spk_general_endpoint.ccc:733) <CbThread.
SEndpoint_WaitOnAsyncMsgBusyPoll> - Detected terminate flag! ret[-120], terminateFlag[1]
20210111-12:45:25.497 INFO [ 0] (_spk_general_endpoint.ccc:923) <CbThread.__SEndpoint_AbstractCallbackThreadMain> - Async callback thread terminated! pid[0], tid[0], queueReceived[68], queueRemoved[0]
20210111-12:45:25.535 INFO [ 0] (spk_general_endpoint.c:1141) <CommThread._SEndpoint_CommChannelMainImpl> - Async communication thread terminated! pid[0], tid[0], channelInMsg[70], channelOutMsg[3]
20210111-12:45:25.535 INFO [ 0] (mds_async_api.c:1570) <CommThread._MdsAsyncApi_AddinOnDisconnect> - MDS-TCP performance statistics. channelType[11], clEnvId[0], server[139.196.228.232:5103], socketFd[2616]
[mds-tcp] => totalInMsgCount: [70], totalInMsgSize: [12376]
[mds-tcp] => totalCompressed: [0], totalDecompress: [0], compressionRatio: [0.00 (1.00)]

20210111-12:45:25.535 INFO [ 0] (spk_general_endpoint.c:852) <CommThread.SEndpoint_OnDisconnect> - Channel disconnected, callback OnDisconnect... pid[0], tid[0], server[139.196.228.232:5103], socketFd[2616], channelTag[tcpServer], channelType[11], channelInMsg[70], channelOutMsg[3], queueReceived[68], queueRemoved[0]
20210111-18:47:49.772 DEBUG [ 0] (spk_malloc.c:84) <api.SMalloc_MallocHugepageAble> - Ignore hugepage flag on non-Linux system! size[550909440]
20210111-18:47:49.772 DEBUG [ 0] (spk_malloc.c:99) <api.SMalloc_MallocHugepageAble> - Malloc memory success! pMem[0000024702FCD040], size[550909440]
20210111-18:47:50.098 DEBUG [ 0] (spk_ring_buf.c:426) <api.SRingBuf_InitAndAttach2> - Init ringbuf success! maxItem[524288], maxDataSize[896], dataAreaSize[482345088], isDynamic[0], isDynamicWithHugepageShm[0], isUnsyncRead[0], isUnsyncWrite[0], isOverlayWrite[0], isBlockingWait[0]
20210111-18:47:50.098 INFO [ 0] (spk_general_endpoint.c:1944) <api.SEndpoint_CreateContext> - Create context success! MAX_REMOTE_CNT[128], extendedChannelCfgSize[532200], totalContextSize[68563456], asyncQueueLength[500000], hugepageFlag[0], totalQueueSize[482345088]
20210111-18:47:50.106 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.mdsapi_communication], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-18:47:50.106 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.mdsapi_callback], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-18:47:50.106 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.mdsapi_io_thread], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-18:47:50.106 INFO [ 0] (mds_async_api.c:2262) <api.MdsAsyncApi_Start> - @@@ Will start async api threads... { pid[0], tid[0], channelCount[1], isPreconnectAble[1], isCompressible[1], isUdpFilterable[0], isAsyncCallbackAble[1], isAsyncCallbackBusyPollAble[1], asyncQueueLength[524288], takeoverStartThreadFlag[0] }
20210111-18:47:50.130 DEBUG [ 0] (general_client_env.c:461) <api.SGeneralClient_TryConnectToAddrList> - connect success! uri[tcp://139.196.228.232:5103], socketFd[2636], protocolType[0], isUnblockAble[0], isContinue[0], lastConnectIdx[0], lastHostNum[1]
20210111-18:47:50.146 DEBUG [ 0] (mds_api.c:536) <api._MdsApi_GetLocalIpAndMac> - Use local ip [192.168.0.100]
20210111-18:47:50.154 DEBUG [ 0] (mds_api.c:564) <api._MdsApi_GetLocalIpAndMac> - Use local mac [B0:7D:64:86:5F:0B]
20210111-18:47:50.173 INFO [ 0] (mds_api.c:968) <api._MdsApi_DoLogon> - Logon success! url[tcp://139.196.228.232:5103], socketFd[2636], time[20210111-18:47:50.173], username[customer793], sessionId[10519332123705346712], clientId[798], heartBtInt[30], remoteSetNum[5], remoteHostNum[1], leaderHostNum[1], protocolHints(I/O)[0 / 0], localIp[192.168.0.100], localMac[B0:7D:64:86:5F:0B], driverId[], targetCompId[MDS_0.15.11.15], applVerId(C/S)[0.16.1.1 / 0.15.11.15]
20210111-18:47:50.187 INFO [ 0] (spk_general_endpoint.c:1502) <CommThread._SEndpoint_CommunicationThreadMain> - @@@ Communication thread is running... { pid[0], tid[0], CPUSET[''], channelCount[1], isPreconnectAble[1], callbackThreadAble[yes], ioThreadAble[no] }
20210111-18:47:50.187 INFO [ 0] (spk_general_endpoint.c:612) <CommThread.
SEndpoint_OnConnect> - Channel connected, callback OnConnect... server[139.196.228.232:5103], socketFd[2636], channelTag[tcpServer], channelType[11], lastInMsgSeq[0], lastOutMsgSeq[0]
20210111-18:47:50.187 DEBUG [ 0] (mds_api.c:1730) <CommThread.MdsApi_SubscribeMarketData> - Send market data request success! server[139.196.228.232:5103], socketFd[2636], subMode[0 (0)], tickType[0], sseStockFlag[0], sseIndexFlag[0], sseOptionFlag[0], szseStockFlag[0], szseIndexFlag[0], szseOptionFlag[0], dataTypes[0x1], beginTime[0], isRequireInitialMktData[0], channelNos[0], tickExpireType[0], tickRebuildFlag[0], subSecurityCnt[1 (sent:1, total:1)]
20210111-18:47:50.219 INFO [ 0] (vnoesmd.cpp:91) CommThread.MdApi::OnConnected - 订阅行情成功! channelTag[tcpServer]
20210111-18:47:50.219 INFO [ 0] (_spk_general_endpoint.ccc:863) <CbThread.
SEndpoint_AbstractCallbackThreadMain> - @@@ Async callback thread is running... { pid[0], tid[0], CPUSET[''], timeoutMs[0], maxQueueItem[524288], queueItemSize[896], totalQueueSize[482345088], busyPollCnt[10000], maxLoopCount[1000] }
20210111-18:47:50.219 INFO [ 0] (spk_general_endpoint.c:1045) <CommThread._SEndpoint_CommChannelMainImpl> - @@@ Async channel is running... { pid[0], tid[0], channelCount[1 / 1], isPreconnectAble[1] }
20210111-18:47:50.251 INFO [ 0] (vnoesmd.cpp:557) api.MdApi::init - 启动交易接口实例...
20210111-18:47:50.259 DEBUG [ 0] (spk_malloc.c:84) <api.SMalloc_MallocHugepageAble> - Ignore hugepage flag on non-Linux system! size[70698496]
20210111-18:47:50.259 DEBUG [ 0] (spk_malloc.c:99) <api.SMalloc_MallocHugepageAble> - Malloc memory success! pMem[0000024724557040], size[70698496]
20210111-18:47:50.307 DEBUG [ 0] (spk_ring_buf.c:426) <api.SRingBuf_InitAndAttach2> - Init ringbuf success! maxItem[131072], maxDataSize[512], dataAreaSize[70254720], isDynamic[0], isDynamicWithHugepageShm[0], isUnsyncRead[0], isUnsyncWrite[0], isOverlayWrite[0], isBlockingWait[0]
20210111-18:47:50.307 INFO [ 0] (spk_general_endpoint.c:1944) <api.SEndpoint_CreateContext> - Create context success! MAX_REMOTE_CNT[128], extendedChannelCfgSize[8], totalContextSize[442880], asyncQueueLength[100000], hugepageFlag[0], totalQueueSize[70254720]
20210111-18:47:50.307 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.oesapi_report], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-18:47:50.307 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.oesapi_callback], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-18:47:50.307 DEBUG [ 0] (spk_cpu_bind.c:391) <api.SCpu_ParseCpuAffinityCfg5> - Can not found CPU affinity config! key1[cpuset.oesapi_io_thread], key2[NULL], key3[NULL], key4[NULL], key5[NULL], default[cpuset.default]
20210111-18:47:50.315 INFO [ 0] (oes_client_sample.cpp:381) api.Quant360::OesClientApi::Start - API version: 0.16.1.1
20210111-18:47:50.326 DEBUG [ 0] (general_client_env.c:461) <api.SGeneralClient_TryConnectToAddrList> - connect success! uri[tcp://106.15.58.119:6401], socketFd[2708], protocolType[0], isUnblockAble[0], isContinue[0], lastConnectIdx[0], lastHostNum[1]
20210111-18:47:50.342 ERROR [ 0] (oes_api.c:6223) <api._OesApi_DoPreLogon> - Api version rejected by server! url[tcp://106.15.58.119:6401], socketFd[2708], username[customer793], errCode[1005], applVerId(C/S)[0.16.1.1 / 0.15.11.15], minApplVerValue(C/S)[1001601011 / 0.15.9]
20210111-18:47:50.461 ERROR [ 0] (general_client_env.c:759) <api.SGeneralClient_TryLogonSpkReplicaSet> - Logon failure, try connect to next node! addrCnt[1], addr0.uri[tcp://106.15.58.119:6401], isUnblockAble[0], ret[0], error[14]
20210111-18:47:50.461 ERROR [ 0] (oes_api.c:9132) <api.OesApi_TryInitQryChannel> - Logon OES cluster (ReplicaSet) failure! ret[-14], isUnblockAble[0]
20210111-18:47:50.461 ERROR [ 0] (oes_client_sample.cpp:409) api.Quant360::OesClientApi::Start - 杩炴帴鏌ヨ閫氶亾澶辫触! error[1005 - 鍗忚鐗堟湰涓嶅吋瀹筣

Member
avatar
加入于:
帖子: 5
声望: 0

这是oes的日志

Administrator
avatar
加入于:
帖子: 4502
声望: 321

我们目前的OES API应该对接的是期权版本,股票版本要自己重新编译下了

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】