[Fix]修复JaqsService模块的bug

This commit is contained in:
vn.py 2017-12-21 15:16:31 +08:00
parent 2dcdcdf4e9
commit 777c0d93aa

View File

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