This commit is contained in:
vn.py 2017-12-15 20:22:55 +08:00
parent 527d4bf779
commit 38338ddbc0

View File

@ -192,7 +192,8 @@ class CtaTemplate(object):
#----------------------------------------------------------------------
def saveSyncData(self):
"""保存同步数据到数据库"""
self.ctaEngine.saveSyncData(self)
if self.trading:
self.ctaEngine.saveSyncData(self)
########################################################################