[Fix]修复JaqsService模块的bug
This commit is contained in:
parent
2dcdcdf4e9
commit
777c0d93aa
@ -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])
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user