This commit is contained in:
vn.py 2018-08-05 00:45:18 +08:00
parent 10306d286a
commit fcb039eee6

View File

@ -3,6 +3,7 @@
import json import json
import traceback import traceback
import shelve import shelve
from collections import OrderedDict
from vnpy.event import Event from vnpy.event import Event
from vnpy.trader.vtFunction import getJsonPath, getTempPath from vnpy.trader.vtFunction import getJsonPath, getTempPath
@ -289,8 +290,8 @@ class StAlgoEngine(object):
self.mainEngine = mainEngine self.mainEngine = mainEngine
self.eventEngine = eventEngine self.eventEngine = eventEngine
self.algoDict = {} # spreadName:algo self.algoDict = OrderedDict() # spreadName:algo
self.vtSymbolAlgoDict = {} # vtSymbol:algo self.vtSymbolAlgoDict = {} # vtSymbol:algo
self.registerEvent() self.registerEvent()