From 65f3625859446d9d2090830bc14bcba74583b6ab Mon Sep 17 00:00:00 2001 From: msincenselee Date: Fri, 26 Jan 2018 10:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BC=A0=E5=85=A5gatewayName?= =?UTF-8?q?=E6=98=AFunicode=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/ctpGateway/ctpGateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/gateway/ctpGateway/ctpGateway.py b/vnpy/trader/gateway/ctpGateway/ctpGateway.py index 0efc0697..d5405eaf 100644 --- a/vnpy/trader/gateway/ctpGateway/ctpGateway.py +++ b/vnpy/trader/gateway/ctpGateway/ctpGateway.py @@ -443,7 +443,7 @@ class CtpMdApi(MdApi): # 如果尚未建立服务器连接,则进行连接 if not self.connectionStatus: # 创建C++环境中的API对象,这里传入的参数是需要用来保存.con文件的文件夹路径 - path = os.getcwd() + '/temp/' + self.gatewayName + '/' + path = os.getcwd() + '/temp/' + str(self.gatewayName) + '/' if not os.path.exists(path): os.makedirs(path) self.createFtdcMdApi(path) @@ -1421,7 +1421,7 @@ class CtpTdApi(TdApi): # 如果尚未建立服务器连接,则进行连接 if not self.connectionStatus: # 创建C++环境中的API对象,这里传入的参数是需要用来保存.con文件的文件夹路径 - path = os.getcwd() + '/temp/' + self.gatewayName + '/' + path = os.getcwd() + '/temp/' + str(self.gatewayName) + '/' if not os.path.exists(path): os.makedirs(path) self.createFtdcTraderApi(path)