From 89d6e6c6fad2758f5902b0deec8de4d6635af8dd Mon Sep 17 00:00:00 2001 From: msincenselee Date: Mon, 4 Mar 2019 14:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/ctaStrategy/ctaEngine.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnpy/trader/app/ctaStrategy/ctaEngine.py b/vnpy/trader/app/ctaStrategy/ctaEngine.py index 0dee7597..ef68d682 100644 --- a/vnpy/trader/app/ctaStrategy/ctaEngine.py +++ b/vnpy/trader/app/ctaStrategy/ctaEngine.py @@ -30,7 +30,6 @@ import re import csv import copy import decimal -from copy import copy from vnpy.trader.vtEvent import * from vnpy.trader.vtConstant import * @@ -2115,7 +2114,7 @@ class CtaEngine(object): flt = {'name': strategy.name, 'vtSymbol': strategy.vtSymbol} - d = copy(flt) + d = copy.copy(flt) for key in strategy.syncList: d[key] = strategy.__getattribute__(key)