From 2dc61c1e4f4fd8743c44955d878519278e54b458 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 7 May 2018 23:32:46 +0800 Subject: [PATCH] [Fix]Close #833 --- examples/CtaTrading/runCtaTrading.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/CtaTrading/runCtaTrading.py b/examples/CtaTrading/runCtaTrading.py index 5d3e51ae..80149435 100644 --- a/examples/CtaTrading/runCtaTrading.py +++ b/examples/CtaTrading/runCtaTrading.py @@ -55,7 +55,8 @@ def runChildProcess(): me.connect('CTP') le.info(u'连接CTP接口') - sleep(10) # 等待CTP接口初始化 + sleep(10) # 等待CTP接口初始化 + me.dataEngine.saveContracts() # 保存合约信息到文件 cta = me.getApp(ctaStrategy.appName)