From 777c0d93aa625ed396ee447c7d2445db540f1e0e Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 21 Dec 2017 15:16:31 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BF=AE=E5=A4=8DJaqsService=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/jaqsService/jsEngine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/app/jaqsService/jsEngine.py b/vnpy/trader/app/jaqsService/jsEngine.py index e73c9c9d..8a072b57 100644 --- a/vnpy/trader/app/jaqsService/jsEngine.py +++ b/vnpy/trader/app/jaqsService/jsEngine.py @@ -64,6 +64,7 @@ class JsEngine(object): # 初始化 self.initCallback() self.initServer() + self.registerEvent() #---------------------------------------------------------------------- def registerEvent(self): @@ -331,7 +332,7 @@ class JsEngine(object): if not contract: return '' - e = EXCHANGE_MAP_REVERSE[contract.exchange] + e = EXCHANGE_MAP_REVERSE.get(contract.exchange, contract.exchange) return '.'.join([contract.symbol, e]) #----------------------------------------------------------------------