[Fix]修复JaqsService模块的bug
This commit is contained in:
parent
2dcdcdf4e9
commit
777c0d93aa
@ -64,6 +64,7 @@ class JsEngine(object):
|
|||||||
# 初始化
|
# 初始化
|
||||||
self.initCallback()
|
self.initCallback()
|
||||||
self.initServer()
|
self.initServer()
|
||||||
|
self.registerEvent()
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def registerEvent(self):
|
def registerEvent(self):
|
||||||
@ -331,7 +332,7 @@ class JsEngine(object):
|
|||||||
if not contract:
|
if not contract:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
e = EXCHANGE_MAP_REVERSE[contract.exchange]
|
e = EXCHANGE_MAP_REVERSE.get(contract.exchange, contract.exchange)
|
||||||
return '.'.join([contract.symbol, e])
|
return '.'.join([contract.symbol, e])
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user