From 1397c86ae8145beb2153a0f2532972cc5ec6dae8 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 7 Aug 2019 15:43:40 +0800 Subject: [PATCH] [Fix] typo in xtp_gateway --- vnpy/gateway/xtp/xtp_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/xtp/xtp_gateway.py b/vnpy/gateway/xtp/xtp_gateway.py index 585a3f42..5e97fad7 100644 --- a/vnpy/gateway/xtp/xtp_gateway.py +++ b/vnpy/gateway/xtp/xtp_gateway.py @@ -241,7 +241,7 @@ class XtpQuoteApi(API.QuoteSpi): self.server_ip = server_ip self.server_port = server_port - if quote_protocol == "CTP": + if quote_protocol == "TCP": self.quote_protocol = XTP_PROTOCOL_TYPE.XTP_PROTOCOL_TCP else: self.quote_protocol = XTP_PROTOCOL_TYPE.XTP_PROTOCOL_UDP