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)