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]) #----------------------------------------------------------------------