From d29f8c71b8428cdb6ed62f25b00034d987785506 Mon Sep 17 00:00:00 2001 From: nanoric Date: Tue, 2 Jul 2019 15:25:07 +0800 Subject: [PATCH] [Mod] oes_gateway: change code to adapt 0.15.9 version api --- vnpy/gateway/oes/oes_md.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/gateway/oes/oes_md.py b/vnpy/gateway/oes/oes_md.py index a51cd4cf..b4267c44 100644 --- a/vnpy/gateway/oes/oes_md.py +++ b/vnpy/gateway/oes/oes_md.py @@ -11,7 +11,7 @@ from vnpy.api.oes.vnoes import MdsApiClientEnvT, MdsApi_DestoryAll, MdsApi_InitL MdsApi_SubscribeMarketData, MdsApi_WaitOnMsg, MdsL2StockSnapshotBodyT, MdsMktDataRequestEntryT, \ MdsMktDataRequestReqBufT, MdsMktDataRequestReqT, MdsMktRspMsgBodyT, MdsStockSnapshotBodyT, \ SGeneralClientChannelT, SMsgHeadT, caster, eMdsExchangeIdT, eMdsMktSubscribeFlagT, eMdsMsgTypeT, \ - eMdsSecurityTypeT, eMdsSubscribeDataTypeT, eMdsSubscribeModeT, eMdsSubscribedTickExpireTypeT, \ + eMdsMdProductTypeT, eMdsSubscribeDataTypeT, eMdsSubscribeModeT, eMdsSubscribedTickExpireTypeT, \ eMdsSubscribedTickTypeT, eSMsgProtocolTypeT from vnpy.gateway.oes.utils import create_remote_config, is_disconnected @@ -296,7 +296,7 @@ class OesMdApi: mds_req.subSecurityCnt = 1 entry.exchId = EXCHANGE_VT2MDS[req.exchange] - entry.securityType = eMdsSecurityTypeT.MDS_SECURITY_TYPE_STOCK # todo: option and others + entry.securityType = eMdsMdProductTypeT.MDS_SECURITY_TYPE_STOCK # todo: option and others entry.instrId = int(req.symbol) self._message_loop.register_symbol(req.symbol, req.exchange)