修复bug

This commit is contained in:
msincenselee 2019-03-04 14:16:15 +08:00
parent 0aedafcee7
commit 89d6e6c6fa

View File

@ -30,7 +30,6 @@ import re
import csv import csv
import copy import copy
import decimal import decimal
from copy import copy
from vnpy.trader.vtEvent import * from vnpy.trader.vtEvent import *
from vnpy.trader.vtConstant import * from vnpy.trader.vtConstant import *
@ -2115,7 +2114,7 @@ class CtaEngine(object):
flt = {'name': strategy.name, flt = {'name': strategy.name,
'vtSymbol': strategy.vtSymbol} 'vtSymbol': strategy.vtSymbol}
d = copy(flt) d = copy.copy(flt)
for key in strategy.syncList: for key in strategy.syncList:
d[key] = strategy.__getattribute__(key) d[key] = strategy.__getattribute__(key)