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 = ""