[Fix]修复OM策略引擎的vtSymbol和strategy映射bug
This commit is contained in:
parent
e459ea311e
commit
254f5abb6b
@ -362,7 +362,11 @@ class OmStrategyEngine(object):
|
|||||||
|
|
||||||
# 保存Tick映射关系
|
# 保存Tick映射关系
|
||||||
for vtSymbol in strategy.vtSymbols:
|
for vtSymbol in strategy.vtSymbols:
|
||||||
l = self.symbolStrategyDict.setdefault(vtSymbol, [])
|
if vtSymbol in self.symbolStrategyDict:
|
||||||
|
l = self.symbolStrategyDict[vtSymbol]
|
||||||
|
else:
|
||||||
|
l = []
|
||||||
|
self.symbolStrategyDict[vtSymbol] = l
|
||||||
l.append(strategy)
|
l.append(strategy)
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user