From 3b1b8d9ffac0729cd4c70f2866d23b3b8d033a18 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 29 Jun 2019 08:50:06 +0800 Subject: [PATCH] [Mod] change default value of brokerid --- vnpy/gateway/ctp/ctp_gateway.py | 4 ++-- vnpy/gateway/ctptest/ctptest_gateway.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vnpy/gateway/ctp/ctp_gateway.py b/vnpy/gateway/ctp/ctp_gateway.py index 6512c41e..50f43152 100644 --- a/vnpy/gateway/ctp/ctp_gateway.py +++ b/vnpy/gateway/ctp/ctp_gateway.py @@ -233,7 +233,7 @@ class CtpMdApi(MdApi): self.userid = "" self.password = "" - self.brokerid = 0 + self.brokerid = "" def onFrontConnected(self): """ @@ -378,7 +378,7 @@ class CtpTdApi(TdApi): self.userid = "" self.password = "" - self.brokerid = 0 + self.brokerid = "" self.auth_code = "" self.appid = "" self.product_info = "" diff --git a/vnpy/gateway/ctptest/ctptest_gateway.py b/vnpy/gateway/ctptest/ctptest_gateway.py index ad3dd73f..992829fa 100644 --- a/vnpy/gateway/ctptest/ctptest_gateway.py +++ b/vnpy/gateway/ctptest/ctptest_gateway.py @@ -233,7 +233,7 @@ class CtpMdApi(MdApi): self.userid = "" self.password = "" - self.brokerid = 0 + self.brokerid = "" def onFrontConnected(self): """ @@ -377,7 +377,7 @@ class CtpTdApi(TdApi): self.userid = "" self.password = "" - self.brokerid = 0 + self.brokerid = "" self.auth_code = "" self.appid = "" self.product_info = ""