From c2c869076397ee016a26bfd44bb0ec3c385b29dd Mon Sep 17 00:00:00 2001 From: msincenselee Date: Fri, 11 Jan 2019 22:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/VnTrader/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/VnTrader/run.py b/examples/VnTrader/run.py index ad06b283..49b2308a 100644 --- a/examples/VnTrader/run.py +++ b/examples/VnTrader/run.py @@ -23,9 +23,9 @@ from vnpy.trader.uiMainWindow import * # 加载底层接口 from vnpy.trader.gateway import ctpGateway # 初始化的接口模块,以及其指定的名称,CTP是模块,value,是该模块下的多个连接配置文件,如 CTP_JR_connect.json 'CTP_Prod', 'CTP_JR', , 'CTP_JK', 'CTP_02' -init_gateway_names = {'CTP': ['CTP','CTP_huafu001','CTP_huafu002']} +init_gateway_names = {'CTP': ['CTP','CTP_001','CTP_002']} -from vnpy.trader.app import (ctaStrategy, riskManager, spreadTrading) +from vnpy.trader.app import (ctaStrategy, riskManager, spreadTrading) #,dataRecorder # 文件路径名 path = os.path.abspath(os.path.dirname(__file__)) @@ -60,6 +60,7 @@ def main(): mainEngine.addApp(ctaStrategy) mainEngine.addApp(riskManager) mainEngine.addApp(spreadTrading) + #mainEngine.addApp(dataRecorder) mainWindow = MainWindow(mainEngine, ee) mainWindow.showMaximized()